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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top