Share via


CRgn::PtInRegion

BOOLPtInRegion(intx**,inty)const;**

BOOLPtInRegion(POINTpoint**)const;**

Return Value

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

Parameters

x

Specifies the logical x-coordinate of the point to test.

y

Specifies the logical y-coordinate of the point to test.

point

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.

Remarks

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

CRgn OverviewClass MembersHierarchy Chart

See Also