Solved

Background colour in CRichEditCtrl

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
repeatSeparator  java  challenge 13 58
Error on moodle after upgrade 3 140
child constructor and parent constructor, overriding and overloading 6 88
FizzBuzz challenge 9 82
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: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

808 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