CRect::operator &=

void operator &=( const RECT& rect );

Parameters

rect

Contains a RECT or CRect.

Remarks

Sets CRect equal to the intersection of CRect and rect. The intersection is the largest rectangle that is contained in both rectangles.

Note   Both of the rectangles must be normalized or this function may fail. You can call NormalizeRect to normalize the rectangles before calling this function.

Example

See the example for CRect::IntersectRect.

CRect OverviewClass MembersHierarchy Chart

See Also   CRect::operator &, CRect::operator |=, CRect::IntersectRect, CRect::NormalizeRect, ::IntersectRect