Window Basic Dialog background color

Started by
8 comments, last by Viscous-Flow 22 years, 5 months ago
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!
Advertisement
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.

___________________________________

_______________________________
"To understand the horse you'll find that you're going to be working on yourself. The horse will give you the answers and he will question you to see if you are sure or not."
- Ray Hunt, in Think Harmony With Horses
ALU - SHRDLU - WORDNET - CYC - SWALE - AM - CD - J.M. - K.S. | CAA - BCHA - AQHA - APHA - R.H. - T.D. | 395 - SPS - GORDIE - SCMA - R.M. - G.R. - V.C. - C.F.
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!"
Alex BroadwinA-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!"
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!"
Alex BroadwinA-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!"
hmmm, just thought that it probably wouldn''t work if someone changed their background properties.

How can you make it so part of your image is transparent in any color of Windows dialog?
Thanks, you two, I''ll do some searching around
Perhaps CreateMappedBitmap with GetSysColor()..
Peter Windridgehttp://www.incomplete.co.uk/ .. just started DirectX and general game programming so please excuse stupid questions.
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!"
Alex BroadwinA-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!"
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...
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!"
Alex BroadwinA-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!"

This topic is closed to new replies.

Advertisement