Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the RGB Color For the Windows COLOR_WINDOW or COLOR_BACKGROUND?

In the Windows Api and GDI, you can use the default window background color for drawing buttons and stuff (that slight greyish color on Win98 , WinXP + Classic Theme etc. ).

What is the rgb value for that?

So I can emulate the exact color in Allegro using al_map_rgb( r, g, b) ?

like image 377
ApprenticeHacker Avatar asked Feb 02 '12 06:02

ApprenticeHacker


1 Answers

It depends on the users settings.

You should use GetSysColor function to retrieve the DWORD value and then use GetRValue, GetGValue, and GetBValue to retrieve red, green and blue component values.

like image 186
Bobrovsky Avatar answered Sep 21 '22 15:09

Bobrovsky