How to get DialogBox BkColor? Thanks!(Win32 SDK)

  • Thread starter Thread starter duwei
  • Start date Start date
D

duwei

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!
 
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
 
Back
Top