Use this operator to obtain a CRect object that is the intersection of this CRect object and rect2. The intersection is the largest rectangle that is contained in both rectangles.
CRect operator &( const RECT& rect2 ) const;
Header file: | Afxwin.h |
Platforms: | |
Versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
CRect Overview, CRect Operators, Simple Value Types, CRect::IntersectRect, CRect::operator &=, CRect::operator |, CRect::NormalizeRect