Поделиться через


GetThemeColor (Windows Embedded CE 6.0)

1/6/2010

This function retrieves the value of the specified color property.

Syntax

HRESULT GetThemeColor(
  HTHEME hTheme,
  HDC hdc,
  int iPartId,
  int iStateId,
  int iPropID,
  COLORREF* pColor
);

Parameters

  • hTheme
    [in] Handle to a window's specified theme data. To create a theme data handle, use OpenThemeDataEx.
  • hdc
    [in] Handle to a device context (HDC) used for drawing the background image. This parameter is optional and may be set to NULL.
  • iPartId
    [in] Integer value that specifies the part that contains the color. For more information, see Theme Parts and States.
  • iStateId
    [in] Integer value that specifies the state of the part that contains the color. For more information, see Theme Parts and States.
  • iPropID
    [in] Integer value that specifies the Color property. For more information, see Theme Property Values.
  • pColor
    [out] Pointer to the COLORREF structure that receives the color value.

Return Value

Returns S_OK if successful, or E_FAIL otherwise.

Requirements

Header uxtheme.h
Library Ietheme.dll
Windows Embedded CE Windows CE 5.0 and later

See Also

Concepts

Theme Support Reference

Other Resources

Theme Support Functions