函数参考


_WinAPI_GetThemeMetric

Retrieves the value of a metric property.

#Include <WinAPIEx.au3>
_WinAPI_GetThemeMetric ( $hTheme, $iPartId, $iStateId, $iPropId [, $hDC] )

参数

$hTheme Handle to a window's specified theme data.
$iPartId The part that contains the metric property.
$iStateId The state of the part.
$iPropId The property to retrieve. It can be one of the following values.

$TMT_ALPHALEVEL
$TMT_ALPHATHRESHOLD
$TMT_BORDERSIZE
$TMT_GLYPHINDEX
$TMT_GRADIENTRATIO1
$TMT_GRADIENTRATIO2
$TMT_GRADIENTRATIO3
$TMT_GRADIENTRATIO4
$TMT_GRADIENTRATIO5
$TMT_HEIGHT
$TMT_IMAGECOUNT
$TMT_MINDPI1
$TMT_MINDPI2
$TMT_MINDPI3
$TMT_MINDPI4
$TMT_MINDPI5
$TMT_PROGRESSCHUNKSIZE
$TMT_PROGRESSSPACESIZE
$TMT_ROUNDCORNERWIDTH
$TMT_ROUNDCORNERHEIGHT
$TMT_SATURATION
$TMT_TEXTBORDERSIZE
$TMT_TRUESIZESTRETCHMARK
$TMT_WIDTH
$hDC [可选参数] Handle to the device context.

返回值

Success The metric property value.
失败: 返回 0 并设置 @error 标志为非 0 值, @extended 标志可能包含一个系统错误代码.

注意/说明

None

相关

详情参考

在MSDN中搜索