GetThemeSysFont function
Retrieves the LOGFONT of a system font.
Syntax
HRESULT GetThemeSysFont(
_In_ HTHEME hTheme,
_In_ int iFontID,
_Out_ LOGFONTW *plf
);
Parameters
- hTheme [in]
-
Type: HTHEME
Handle to theme data.
- iFontID [in]
-
Type: int
Value of type int that specifies a system font. May be one of the following values.
- plf [out]
-
Type: LOGFONTW*
Pointer to a LOGFONT structure that receives the font information from this function.
Windows XP and earlier: Pointer to a LOGFONT structure.
Return value
Type: HRESULT
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
This function requires vssym32.h and uxtheme.h.
If the theme data handle is not a NULL handle, this function returns the desired LOGFONT from the SysMetrics section of the visual style. If the theme data handle is NULL, the function returns the value of the global system metric of the same type.
The font is scaled in dots per inch for the current logical screen.
Requirements
|
Minimum supported client | Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
Send comments about this topic to Microsoft
Build date: 10/27/2012