Function Reference


Calculates the size and location of the background, defined by the visual style, given the content area

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


$hTheme Handle to a window's specified theme data.
$iPartID The part that contains the content area.
$iStateID The state of the part.
$hDC Handle to the device context to use when drawing.
$tRECT $tagRECT structure that contains the content background rectangle.

Return Value

Success: $tagRECT structure that contains the background rectangle.
Failure: Sets the @error flag to non-zero, @extended flag may contain the HRESULT error code.

See Also

Search GetThemeBackgroundExtent in MSDN Library.