Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get the default dialog color 1

Status
Not open for further replies.

LyMc

Programmer
Jun 3, 2003
84
US
I have found (and used) lots of information on setting the dialog background color. What I want to do is *get* the color so I can use it to background some text. I understand that that color is editable by the user, and I want to match what they have chosen.
 
I think you need this one:

GetSysColor(COLOR_3DFACE)

Greetings,
Rick
 
Thanks, Lazy. I think that is exactly what I need.
 
if course, if this is a child window you're painting, you'll want to send the parent the appropriate WM_CTLCOLOR message first and see if you get a handle back; if so, that's the dialog's suggested background color.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top