◄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 ♦