Click to See Complete Forum and Search --> : Window Background Color
Vermiculus
February 17th, 2009, 10:43 PM
Is there any rhyme or reason to the window background color (hbrBackground) color assignments? is there a chart somewhere with all these colors? Just wondering, really - I'm pretty new to the Windows API... :)
ckweius
February 18th, 2009, 01:29 AM
The OS maintains a system palette for each device which contains the color values for all colors that can be displayed by the device.
You can view the contents of the system palette by using the GetSystemPaletteEntries function.
Kevin Choong
Marc G
February 18th, 2009, 03:52 AM
You can use GetSysColor (http://msdn.microsoft.com/en-us/library/ms724371(VS.85).aspx) to retrieve all kinds of colors used by the system, for example for menu text, window background, button face, ...
Vermiculus
February 19th, 2009, 09:20 PM
Thank you!
Vermiculus
February 19th, 2009, 09:21 PM
On second thought, is there any way to actually define RGB values for the color, like in HTML?
_Superman_
February 20th, 2009, 03:11 AM
You can use the RGB macro to define such a color.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.