Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Background colour in CRichEditCtrl

Posted on 1997-07-24
1
Medium Priority
?
548 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 280 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

916 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