GetSysColor This function 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. DWORD GetSysColor(int nIndex);COLOR_BACKGROUND, COLOR_DESKTOP Desktop. Return Values The red, green, blue (RGB) color value that determines the color of the specified element indicates success. Zero indicates failure. To get extended error information, call GetLastError. SetSysColors This function sets the colors for one or more display elements. BOOL WINAPI SetSysColors( int cElements, CONST INT *lpaElements, CONST COLORREF *lpaRgbValues); Parameters cElements Specifies the number of display elements in the array pointed to by the lpaElements parameter. lpaElements Long pointer to an array of integers that specify the display elements to be changed. For a list of display elements, see GetSysColor. lpaRgbValues Long pointer to an array of unsigned long integers that contains the new red, green, blue (RGB) color value for each display element in the array pointed to by the lpaElements parameter. Return Values Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.
This function 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. DWORD GetSysColor(int nIndex);COLOR_BACKGROUND, COLOR_DESKTOP Desktop.
Return Values
The red, green, blue (RGB) color value that determines the color of the specified element indicates success. Zero indicates failure. To get extended error information, call GetLastError.
SetSysColors
This function sets the colors for one or more display elements. BOOL WINAPI SetSysColors(
int cElements,
CONST INT *lpaElements,
CONST COLORREF *lpaRgbValues);
Parameters
cElements
Specifies the number of display elements in the array pointed to by the lpaElements parameter.
lpaElements
Long pointer to an array of integers that specify the display elements to be changed. For a list of display elements, see GetSysColor.
lpaRgbValues
Long pointer to an array of unsigned long integers that contains the new red, green, blue (RGB) color value for each display element in the array pointed to by the lpaElements parameter.
Return Values
Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.