CRect::PtInRect

BOOL PtInRect( POINT point ) const;

Return Value

Nonzero if the point lies within CRect; otherwise 0.

Parameters

point

Contains a POINT structure or CPoint object.

Remarks

Determines whether the specified point lies within CRect. A point is within CRect if it lies on the left or top side or is within all four sides. A point on the right or bottom side is outside CRect.

Note   The rectangle must be normalized or this function may fail. You can call NormalizeRect to normalize the rectangle before calling this function.

CRect OverviewClass MembersHierarchy Chart

See Also   CRect::NormalizeRect, ::PtInRect