GetThemeSysColor function (uxtheme.h)

Retrieves the value of a system color.

Syntax

COLORREF GetThemeSysColor(
  [in] HTHEME hTheme,
  [in] int    iColorId
);

Parameters

[in] hTheme

Type: HTHEME

Handle to theme data.

[in] iColorId

Type: int

Value of type int that specifies the color number. May be one of the values listed in GetSysColor for the nIndex parameter.

Return value

Type: COLORREF

The value of the specified system color.

Remarks

If the theme data handle is not a NULL handle, this function returns the color from the SysMetrics section of the current visual style. If the theme data handle is NULL, this function returns the color matching the global system color.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header uxtheme.h
Library UxTheme.lib
DLL UxTheme.dll