Retrieves information about the theme specified font for a particular part.
Syntax
HRESULT GetThemeTextMetrics( HTHEME hTheme, HDC hdc, int iPartId, int iStateId, TEXTMETRIC *ptm );
Parameters
- hTheme
- Handle to a window's specified theme data. Use OpenThemeData to create an HTHEME.
- hdc
- Handle to a device context.
- iPartId
- Integer that specifies the part to retrieve font information about.
- iStateId
- Integer that specifies the state of the part.
- ptm
- [out] Pointer to a TEXTMETRIC structure that receives the font information.
Return Value
Returns S_OK if successful, or an error value otherwise.
Function Information
Stock Implementation UxTheme.dll Custom Implementation No Header ThemeApi.h Import library UxTheme.lib Minimum operating systems Windows NT Whistler