Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.23 KB

GetSysColor.md

File metadata and controls

47 lines (31 loc) · 1.23 KB

Home

Function name : GetSysColor

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


Code examples:

Using GetSysColor
Changing system colors

Declaration:

DWORD GetSysColor(
	int  nIndex 	// display element
);  

FoxPro declaration:

DECLARE INTEGER GetSysColor IN user32 INTEGER nIndex  

Parameters:

nIndex Specifies the display element whose color is to be retrieved


Return value:

If the function succeeds, the return value is the red, green, blue (RGB) color value that specifies the color of the given element


Comments:

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