GetSysColor

  DWORD GetSysColor(nIndex)    
  int nIndex; /* display element */

This function retrieves the current color of the display element specified by the nIndex parameter. Display elements are the various parts of a window and the Windows display that appear on the system display screen.

Parameters

nIndex

Specifies the display element whose color is to be retrieved. For a list of the index values, see the SetSysColor function, later in this chapter.

Return Value

The return value specifies an RGB color value that names the color of the given element.

Comments

System colors for monochrome displays are usually interpreted as various shades of gray.

See Also

SetSysColors