|"how to set background color ?"
U can handle WM_CTLCOLORDLG to change the background color of the dialog.
In the link u have given, the code is not returning the handle to the new bursh u want to set for the dialog. See what msdn says
"OnCtlColor must return a handle to the brush that is to be used for painting the control background".
In the code u r returning the default brush handle. so that may the problem of not changineg the background color.
and change your code like this
if(nCtlColor == CTLCOLOR_DLG)<br />
hbr = CreateSolidBrush(RGB(2,22,222));<br />
modified on Friday, April 11, 2008 10:58 AM