# Function Reference

# _WinAPI_GetThemeSysSize

Retrieves the value of a system size metric from theme data

#include <WinAPITheme.au3>
_WinAPI_GetThemeSysSize ( $hTheme, $iSizeID )

## Parameters

$hTheme | Handle to the theme data.
$iSizeID | The value that specifies the system size metric desired. The following values are valid. $SM_CXBORDER $SM_CXVSCROLL $SM_CXHSCROLL $SM_CXSIZE $SM_CYSIZE $SM_CXSMSIZE $SM_CYSMSIZE $SM_CXMENUSIZE $SM_CYMENUSIZE $SM_CXPADDEDBORDER

## Return Value

Returns the size in pixels.

## Remarks

If $hTheme is not 0, this function returns the size stored in the current visual style (SysMetrics section
of the visual style) scaled to the current screen dpi. If $hTheme is 0, this function returns the global system
metric in pixels that is scaled to the current dpi only if the application is marked as dpi-aware; otherwise,
the pixels returned are unscaled.

## See Also

Search GetThemeSysSize in MSDN Library.