Solved

Background colour in CRichEditCtrl

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

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 …
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

773 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