Share via


CRect::operator =

Assigns srcRect to CRect.

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

Parameters

  • srcRect
    Refers to a source rectangle. Can be a RECT or CRect.

Example

CRect rect(0, 0, 127, 168);
CRect rect2;

rect2 = rect;

ASSERT(rect2 == CRect(0, 0, 127, 168));   

Requirements

Header: atltypes.h

See Also

Reference

CRect Class

Hierarchy Chart

CRect::CRect

CRect::SetRect

CRect::CopyRect

CRect::SetRectEmpty

CopyRect