Function Reference


_WinAPI_GetThemeSysFont

Retrieves the font information of a system font

#include <WinAPITheme.au3>
_WinAPI_GetThemeSysFont ( $hTheme, $iFontID )

Parameters

$hTheme Handle to the theme data.
$iFontID The value that specifies a system font. It may be one of the following values.
$TMT_CAPTIONFONT
$TMT_SMALLCAPTIONFONT
$TMT_MENUFONT
$TMT_STATUSFONT
$TMT_MSGBOXFONT
$TMT_ICONTITLEFONT

Return Value

Success: $tagLOGFONT structure that contains the font information.
Failure: Sets the @error flag to non-zero, @extended flag may contain the HRESULT error code.

Remarks

If the theme data handle is not 0, this function returns the font information from the SysMetrics section of the
visual style, otherwise, the function returns the value of the global system metric.

See Also

Search GetThemeSysFont in MSDN Library.