Function Reference


Retrieves the value of a metric property

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


$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.
$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.