Hi
Does anyone know how to change the default
background colour of a derived CRichEditView
class
Cheers
Matty
Printable View
Hi
Does anyone know how to change the default
background colour of a derived CRichEditView
class
Cheers
Matty
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
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..........