CRect::PtInRect

Call this member function to determine whether the specified point lies within the CRect object. 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.

Syntax

BOOL PtInRect( POINT point ) const;

At a Glance

Header file: Afxwin.h
Platforms:
Versions: 1.0 and later
Complete documentation: Visual C++ documentation

See Also

CRect Overview, CRect Member Functions, Simple Value Types, CRect::NormalizeRect