Export (0) Print
Expand All
Expand Minimize

GetThemeSysColor function

Retrieves the value of a system color.

Syntax


COLORREF GetThemeSysColor(
  _In_  HTHEME hTheme,
  _In_  int iColorID
);

Parameters

hTheme [in]

Type: HTHEME

Handle to theme data.

iColorID [in]

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 XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Uxtheme.h

Library

UxTheme.lib

DLL

UxTheme.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft