What color is gray?
-
Hi, I need to know how to specify the system color used in a GRAY_BRUSH as an RGB macro. In other words, if I have something like RGB(r, g, b) Then what values should r, g, and b equal to match LTGRAY_BRUSH, GRAY_BRUSH, etc. Are there some defined constants for gray, light gray, etc? Thanks, Aaron
-
Hi, I need to know how to specify the system color used in a GRAY_BRUSH as an RGB macro. In other words, if I have something like RGB(r, g, b) Then what values should r, g, and b equal to match LTGRAY_BRUSH, GRAY_BRUSH, etc. Are there some defined constants for gray, light gray, etc? Thanks, Aaron
In terms of RGB, lt gray is (192, 192, 192), medium gray is (128, 128, 128) and dark grey is (64, 64, 64). Not sure if this information actually helps you. /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com
-
Hi, I need to know how to specify the system color used in a GRAY_BRUSH as an RGB macro. In other words, if I have something like RGB(r, g, b) Then what values should r, g, and b equal to match LTGRAY_BRUSH, GRAY_BRUSH, etc. Are there some defined constants for gray, light gray, etc? Thanks, Aaron
You can user the GetSystemColor() function to get any of the Windows system colors. You can use GetRValue() GetGValue() and GetBValue() to get the actual values (that you may or may not still need).
-
Hi, I need to know how to specify the system color used in a GRAY_BRUSH as an RGB macro. In other words, if I have something like RGB(r, g, b) Then what values should r, g, and b equal to match LTGRAY_BRUSH, GRAY_BRUSH, etc. Are there some defined constants for gray, light gray, etc? Thanks, Aaron
Hope this could help you. GetSysColorBrush http://msdn.microsoft.com/library/en-us/wceui40/htm/cerefGetSysColorBrush.asp GetSysColor http://msdn.microsoft.com/library/en-us/sysinfo/base/getsyscolor.asp
-
You can user the GetSystemColor() function to get any of the Windows system colors. You can use GetRValue() GetGValue() and GetBValue() to get the actual values (that you may or may not still need).
Thanks for the tips! I think the GetSysColor is the one I need.