
Background color of CEdit
Create a new CEdit-derived class and override the OnCtlColor member function.
When you get a CTLCOLOR_EDIT for the window you want, return a
brush of the color you want the background to be. Use this class with
SubclassDlgItem or SubclassWindow and voila - a new background color in
the edit box.
HTH
: I have a class that has a CEdit as one protected variable that i create in
: my class create method.
:
: How can i change the CEdit background color (i know i have to handle
: WM_CTLCOLOR but i don't know how) ???
:
: And how can i handle other messages from the CEdit ??
:
:
--
--
/* Andrew */
WWW: http://www.halcyon.com/ast