Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
Retrieves the LOGFONT of a system font.
HRESULT GetThemeSysFont(
[in] HTHEME hTheme,
[in] int iFontId,
[out] LOGFONTW *plf
);
[in] hTheme
Type: HTHEME
Handle to theme data.
[in] iFontId
Type: int
Value of type int that specifies a system font. May be one of the following values.
[out] plf
Type: LOGFONTW*
Pointer to a LOGFONT structure that receives the font information from this function.
Type: HRESULT
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
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.
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | uxtheme.h |
Library | UxTheme.lib |
DLL | UxTheme.dll |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today