# Function Reference

# _WinAPI_PtInRect

Determines whether the specified point lies within the specified rectangle

#include <WinAPIGdi.au3>
_WinAPI_PtInRect ( ByRef $tRECT, ByRef $tPoint )

## Parameters

$tRECT | $tagRECT structure that contains the specified rectangle
$tPoint | $tagPOINT structure that contains the specified point

## Return Value

True: | point lies within the rectangle
False: | point does not lie within the rectangle

## Related

$tagPOINT, $tagRECT

## See Also

Search PtInRect in MSDN Library.