Partager via


GetThemeFont (Windows Embedded CE 6.0)

1/6/2010

This function retrieves the value of the specified font property.

Syntax

HRESULT GetThemeColor(
  HTHEME hTheme,
  HDC hdc,
  int iPartId,
  int iStateId,
  int iPropID,
  LOGFONT* pFont
);

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 font. For more information, see Theme Parts and States.
  • iStateId
    [in] Integer value that specifies the state of the part that contains the font. For more information, see Theme Parts and States.
  • iPropID
    [in] Integer value that specifies the Font property. For more information, see Theme Property Values.
  • pFont
    [out] Pointer to the LOGFONT structure that receives the font value.

Return Value

Returns S_OK if successful, or E_FAIL otherwise.

Remarks

The font is scaled in dots per inch (DPI) for the current logical screen.

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