Поделиться через


CRect::operator &=

Sets CRect equal to the intersection of CRect and rect.

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

Параметры

  • rect
    Contains a RECT or CRect.

Заметки

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

ПримечаниеПримечание.

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

Пример

See the example for CRect::IntersectRect.

Требования

Header: atltypes.h

См. также

Основные понятия

CRect Class

CRect Members

Hierarchy Chart

CRect::operator &

CRect::operator |=

CRect::IntersectRect

CRect::NormalizeRect

IntersectRect