Function Reference


_WinAPI_GetThemeMetric

Retrieves the value of a metric property

#include <WinAPITheme.au3>
_WinAPI_GetThemeMetric ( $hTheme, $iPartID, $iStateID, $iPropID [, $hDC = 0] )

Parameters

$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 [optional] Handle to the device context.

Return Value

Success: The metric property value.
Failure: Sets the @error flag to non-zero, @extended flag may contain the HRESULT error code.

See Also

Search GetThemeMetric in MSDN Library.