pankaj1782
July 27th, 2007, 12:40 AM
I am trying to get the background color for a static control from the parent dialog. The static control is subclassed and in the OnEraseBkgnd function of (static control) i send the WM_CTLCOLORSTATIC message to the parent dialog.
The parent dialog is a simple dialog, but in return for this message all I receive is a brush handle which has BS_PATTERN as the style, which shouldn't be the case, normally I should receive a solid brush. Can you please throw some light on this that what could be the reason for this thing.
thanks
Pankaj
The parent dialog is a simple dialog, but in return for this message all I receive is a brush handle which has BS_PATTERN as the style, which shouldn't be the case, normally I should receive a solid brush. Can you please throw some light on this that what could be the reason for this thing.
thanks
Pankaj