Matty Cross
April 30th, 1999, 06:15 AM
Hi
Does anyone know how to change the default
background colour of a derived CRichEditView
class
Cheers
Matty
Selva
April 30th, 1999, 08:27 AM
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
Matty Cross
May 4th, 1999, 09:08 AM
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..........