CODGlobal::PtInRect

BOOL CODGlobal::PtInRect(CPoint point, CRect rect)

Determines if a point is within a rectangle

Defined in: OdGlobal.cpp

Return Value

TRUE if the point in in the rectangle, FALSE if it is not.

Parameters

point

The point to test.

rect

The rectangle to test.

Comments

In the MFC method CRect::PtInRect returns FALSE if the point is on the right or bottom edges of the rectangle. In this version, TRUE is returned in these cases.