I got a example, it GetBkColor from a HDC(the dc get from a DialogBox), but
it BkColor always color white, dialogbox default BkColor is color like gray,
how can I do to get the correct color for dialogbox? Thanks!
JP - 25 Sep 2007 01:34 GMT
Hi
I hope you are using GetDC before using GetBkColor.
You might need to check the validity of the DC before using GetBkColor.
Also may i know where are you using the GetDC.
Thanks
JP
> I got a example, it GetBkColor from a HDC(the dc get from a DialogBox), but
> it BkColor always color white, dialogbox default BkColor is color like gray,
> how can I do to get the correct color for dialogbox? Thanks!