CRect::IntersectRect

Call this member function to make a CRect object equal to the intersection of two existing rectangles. The intersection is the largest rectangle contained in both existing rectangles.

Syntax

BOOL IntersectRect( LPCRECT lpRect1, LPCRECT lpRect2 );

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::operator &=, CRect::operator &, CRect::UnionRect, CRect::SubtractRect, CRect::NormalizeRect