# Function Reference

# _WinAPI_RectInRegion

Determines whether any part of the specified rectangle is within the boundaries of a region

#include <WinAPIGdi.au3>
_WinAPI_RectInRegion ( $hRgn, $tRECT )

## Parameters

$hRgn | Handle to the region.
$tRECT | $tagRECT structure that contains the coordinates of the rectangle in logical units.

## Return Value

Success: | True - Any part of the specified rectangle lies within the boundaries of the region
Failure: | False.

## See Also

Search RectInRegion in MSDN Library.