Hello,
I would like to know how I could change the back color of a dialog box? Thanks for any help.
Printable View
Hello,
I would like to know how I could change the back color of a dialog box? Thanks for any help.
Handle the WM_CTLCOLOR message and return a handle to a brush of the color you want the dialog.
So for the message you could just do
Code:return( CreateSolidBrush( RGB( 86, 154, 169 ) );
Which would change it to a greenish blue color... That is the one way to do it in MFC.
I guess using the API you might handle WM_CTLCOLORDLG and modify the brush on the current DC and then pass it along to the default window procedure. That would be my guess... Never actually did this one before.