
Change Dialog Box Background Color
Quote:
> OnEraseBkgnd () corresponding to WM_ERASEBKGND
> And in WinApp the
> SetDialogBkColor( COLORREF ( RGB (198, 189, 231) ), COLORREF ( RGB(0, 0,
> 0) ) );
> Set dialog box and message box colors
Not really sure why you responded to my post but:
OnEraseBkgnd is the wrong place to change the color of the dialog box -
you're working too hard. The default processing for WM_ERASEBKGND will use
the brush returned from WM_CTLCOLORDLG.
- and -
SetDialogBkColor changes the colors for all dialog boxes in an application,
which is not what the original poster asked for.
--
Mickey Williams
Author - Programming Windows 2000 Unleashed
Teach Yourself Visual C++ in 24 Hours