Solved

Background colour in CRichEditCtrl

Posted on 1997-07-24
1
491 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MFC Dialog 9 48
bobThere java chalenge 45 91
Adapt this command to show who installed 29 106
haveThree challenge 22 114
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

867 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

19 Experts available now in Live!

Get 1:1 Help Now