Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
hi i have to change the dialog background color at runtime frequently. how to do this
* Handle WM_CTLCOLOR (handler OnCtlColor) * prepare a HBRUSH (CreateSoldBrush or so) * return that brush from the handler (also use CDC::SetBkMode(TRANSPARENT) if needed)
-- ===== Arman
prathuraj wrote: change the dialog background color at runtime
prathuraj wrote:
change the dialog background color at runtime
On the WM_CTLCOLOR you need when want to use SetBkColor(); use of a global variable(COLORREF).
WM_CTLCOLOR
SetBkColor();
WhiteSky