Solved

Background colour in CRichEditCtrl

Posted on 1997-07-24
1
487 Views
Last Modified: 2013-11-20
I am using the SetWordCharFormat to change the colour of the text in a CRichEditCtrl View/Doc system.  Does anyone know how you can change the background colour of the word / line? I have tried using SetBackgroundColor but this is the entire background not just a small section


Thanks in advance
0
Comment
Question by:ABrown
1 Comment
 
LVL 8

Accepted Solution

by:
gelbert earned 70 total points
ID: 1302783
Use function CWnd::OnCtlColor() to set brush to paint background of your control. See details in MFC help.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
ADO Memory leak with DELPHI 2007 37 155
wait notify demo infinite loop 3 81
Fibonacci challenge 11 84
Change to event 1 74
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now