Compartir a través de


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.

Nota

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

Reference

CRect Class

Hierarchy Chart

CRect::operator &

CRect::operator |=

CRect::IntersectRect

CRect::NormalizeRect

IntersectRect

Other Resources

CRect Members