GetThemeSysColor function

Retrieves the value of a system color.

Syntax

void GetThemeSysColor(
  HTHEME hTheme,
  int    iColorId
);

Parameters

hTheme

Type: HTHEME

Handle to theme data.

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

   
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