Group: System Information - Library: user32
Retrieves the current color of the specified display element. Display elements are the parts of a window and the Windows display that appear on the system display screen
Using GetSysColor
Changing system colors
DWORD GetSysColor(
int nIndex // display element
);
DECLARE INTEGER GetSysColor IN user32 INTEGER nIndex
nIndex Specifies the display element whose color is to be retrieved
If the function succeeds, the return value is the red, green, blue (RGB) color value that specifies the color of the given element
Some constants are not availble for Win9 or otherwise for WinNT. The "reverse" function is SetSysColors. Note the difference: GetSysColor restores one color at a time; SetSysColors function allows to change several colors at once