Determines whether any part of the specified rectangle is within the boundaries of a region
#include <WinAPIGdi.au3>
_WinAPI_RectInRegion ( $hRgn, $tRECT )
| $hRgn | Handle to the region. |
| $tRECT | $tagRECT structure that contains the coordinates of the rectangle in logical units. |
| Success: | True - Any part of the specified rectangle lies within the boundaries of the region |
| Failure: | False. |
Search RectInRegion in MSDN Library.