Dialog Window Background Color?
Posted on 1998-11-09
I am newbie to Windows programming - so I may not be precise in my terminology.
I need to get the background color of a dialog window. This is the same as the background color of the string 'Message Text' when you do <start/Settings/Control Panel/Display/Appearance>'.
In other words, I am interested in the color that is returned by 'GetPixel(hWnd_dialog, 1, 1)'. But I do not like this method, since this code may be broken if someone puts a control at position 1, 1 on the dialog box later.
If I do 'GetBkColor(hWnd_dialog)' I always get white.
What should I be doing to get the background color of the dialog box?