Archived

This topic is now archived and is closed to further replies.

Viscous-Flow

Window Basic Dialog background color

Recommended Posts

Hi, I was just wondering what the hexadecimal color number for the background of a gray Windows dialog is (not the dark gray, but the lighter one). I want to make the background of a bitmap blend in with the dialog since BMP''s don''t support an alpha channel. I haven''t been able to find the right color of gray. Thanks!

Share this post


Link to post
Share on other sites
GetSysColor() with the appropriate parameter will return the color of whatever windows item you might want. Bear in mind that a user may change these colors, so your bitmap might look good on your system, but it may not match another system.

___________________________________

Share this post


Link to post
Share on other sites
Darn, I used to have this great program that would allow you to open a color picker, and it would give you the resulting hex value needed. I''ll try to find it for you, you may find it useful. I can''t seem to find what I did with my copy. The utility used to (I think) be in NeHe''s download section before it got removed. If I can''t find it, good luck.

Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"

Share this post


Link to post
Share on other sites
Well not what I had in mind, but this will do it. Here.

http://www.gobase2.com/converter/

Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"

Share this post


Link to post
Share on other sites
Yea, I seem to recall making a prog. that had that problem. I made a 16x16 image of the color I wanted and tiled it behind everything. Not the best way to do it, but it worked at the time.

Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"

Share this post


Link to post
Share on other sites
Well, maybe I''m just missing something, but y don''t u just push the key next to f12(the one that says prt scrn) and open mspaint and paste it there. That will give you a pic of your screen. If you have a window up, you could just get the pic and copy that color. I''m probobly missing something though...

Share this post


Link to post
Share on other sites
Actually, I believe you need to press ALT+PrintScreen. Not just PrintScreen. Maybe I''m wrong though...

Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"

Share this post


Link to post
Share on other sites