Function Reference


_WinAPI_UnionRect

Creates the union of two rectangles

#include <WinAPIGdi.au3>
_WinAPI_UnionRect ( $tRECT1, $tRECT2 )

Parameters

$tRECT1 $tagRECT structure that contains the first source rectangle.
$tRECT2 $tagRECT structure that contains the second source rectangle.

Return Value

Success: $tagRECT structure that contains the union of the $tRECT1 and $tRECT2 rectangles.
Failure: Sets the @error flag to non-zero.

Remarks

The union is the smallest rectangle that contains both source rectangles. The system ignores the
dimensions of an empty rectangle that is, a rectangle in which all coordinates are set to zero, so that
it has no height or no width.

See Also

Search UnionRect in MSDN Library.