Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This function retrieves the value of the specified font property.
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 Values
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
OS Versions: Windows CE 5.0 and later.
Header: Uxtheme.h.
Link Library: Ietheme.dll.
See Also
Send Feedback on this topic to the authors