"Ivan Sinitsin" ivan@etersoft.ru wrote:
This patch corrects background color of a dialogue window "Print Dialog ". For background color of dialog windows it used the background color of class DIALOG or the COLOR_BTNFACE.
- case WM_CTLCOLORDLG:
- hbr=(HBRUSH)GetClassLongPtrW( hDlg, GCLP_HBRBACKGROUND);
- if (!hbr) hbr=(HBRUSH)GetSysColorBrush(COLOR_BTNFACE);
- return hbr;
Why do you need this? Def[Wnd|Dlg]Proc is supposed to handle that.