函数参考


_WinAPI_GetThemeSysSize

Retrieves the value of a system size metric from theme data.

#Include <WinAPIEx.au3>
_WinAPI_GetThemeSysSize ( $hTheme, $iSizeId )

参数

$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

返回值

Success The size in pixels.
失败: 返回 0 并设置 @error 标志为非 0 值.

注意/说明

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-awareotherwise,
the pixels returned are unscaled.

相关

详情参考

在MSDN中搜索