win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WinQuerySysColor (1.2)
Function Group                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINSYS
 
COLOR WinQuerySysColor(hwndDesktop, clr, lReserved)
HWND hwndDesktop;    /* handle of the desktop            */
COLOR clr;           /* color index of color to retrieve */
LONG lReserved;      /* reserved                         */
 
The WinQuerySysColor function retrieves a specified system color.
 
Parameter    Description
────────────────────────────────────────────────────────────────────────────
 
hwndDesktop  Identifies the desktop window. This parameter can be
             HWND_DESKTOP or the desktop window handle.
 
clr          Specifies the system color-index value to be returned. This
             parameter must be one of the SYSCLR index values. For a list of
             system color indexes, see the System colors topic.
 
lReserved    Reserved; must be zero.
 
Return Value
 
The return value is the RGB value corresponding to the index value specified
by the clr parameter.
 
See Also
 
WinSetSysColors