By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,106 Members | 2,474 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,106 IT Pros & Developers. It's quick & easy.

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

P: n/a
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!

Sep 22 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

"duwei" wrote:
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!
Sep 25 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.