Freigeben über


CRect::operator &=

Sets CRect equal to the intersection of CRect and rect.

void operator&=( 
   const RECT& rect  
) throw( );

Parameters

  • rect
    Contains a RECT or CRect.

Remarks

The intersection is the largest rectangle that is contained in both rectangles.

Hinweis

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.

Requirements

Header: atltypes.h

See Also

Concepts

CRect Class

CRect Members

Hierarchy Chart

CRect::operator &

CRect::operator |=

CRect::IntersectRect

CRect::NormalizeRect

IntersectRect