Function Reference


Calculates the original size of the part defined by a visual style

#include <WinAPITheme.au3>
_WinAPI_GetThemePartSize ( $hTheme, $iPartID, $iStateID, $hDC, $tRECT, $iType )


$hTheme Handle to a window's specified theme data.
$iPartID The part part to calculate the size of.
$iStateID The state of the part.
$hDC Handle to a device context to select fonts into.
$tRECT $tagRECT structure that contains the rectangle used for the part drawing destination.
$iType The type of size to retrieve. This parameter can be one of the following values.

Return Value

Success: $tagSIZE structure that contains a dimensions of the specified part.
Failure: Sets the @error flag to non-zero, @extended flag may contain the HRESULT error code.

See Also

Search GetThemePartSize in MSDN Library.