# Function Reference

# _WinAPI_PtInRectEx

Determines whether the specified point lies within the specified rectangle

#include <WinAPIGdi.au3>
_WinAPI_PtInRectEx ( $iX, $iY, $iLeft, $iTop, $iRight, $iBottom )

## Parameters

$iX | The x-coordinate of the point.
$iY | The y-coordinate of the point.
$iLeft | The x-coordinate of the upper-left corner of the rectangle.
$iTop | The y-coordinate of the upper-left corner of the rectangle.
$iRight | The x-coordinate of the lower-right corner of the rectangle.
$iBottom | The y-coordinate of the lower-right corner of the rectangle.

## Return Value

True: | the specified point lies within the rectangle.
False: | the specified point do not lie within the rectangle.

## See Also

Search PtInRect in MSDN Library.