|
-
April 30th, 1999, 06:15 AM
#1
CRichEditView Bk Color
Hi
Does anyone know how to change the default
background colour of a derived CRichEditView
class
Cheers
Matty
-
April 30th, 1999, 08:27 AM
#2
Re: CRichEditView Bk Color
Hi Matty,
In the View class which is Derived from CRichEditView add the following code in one function (for ex. OnColorChange) and call the function to change the Background clolor of the View which is Derived from CRichEditView.
void OnColorChange()
{
GetRichEditCtrl().SetBackgroundColor(FALSE, RGB(255,0,0));
}
Here i have Changed the Color to RED if you want to change to any other color use COLORREF.
Selva
-
May 4th, 1999, 09:08 AM
#3
Re: CRichEditView Bk Color
To Selva
Thanks for the solution. The answer to that
problem was driving me crazy delving into the MFC
code when in fact it was so simple.
Cheers
Matty..........
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|