Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic


Checks whether the point given by x and y is in the region stored in the CRgn object.

BOOL PtInRegion(
   int x,
   int y 
) const;
BOOL PtInRegion(
   POINT point 
) const;


Specifies the logical x-coordinate of the point to test.
Specifies the logical y-coordinate of the point to test.
The x- and y-coordinates of point specify the x- and y-coordinates of the point to test the value of. The point parameter can either be a POINT structure or a CPoint object.

Return Value

Nonzero if the point is in the region; otherwise 0.

See Also

CRgn Overview | Class Members | Hierarchy Chart | PtInRegion

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.