Retrieves the dimensions of the tightest bounding rectangle for the window region of a window
#include <WinAPIGdi.au3>
_WinAPI_GetWindowRgnBox ( $hWnd, ByRef $tRECT )
$hWnd | Handle to the window. |
$tRECT | Returns a $tagRECT structure that is created by this function, and contains the rectangle dimensions, in device units relative to the upper-left corner of the window. |
Success: | The value that specifies the region's complexity; it can be one of the following values. $COMPLEXREGION $NULLREGION $SIMPLEREGION |
Failure: | 0. |
Search GetWindowRgnBox in MSDN Library.