Partager 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

Concepts

CRect Class

CRect Members

Hierarchy Chart

CRect::CRect

CRect::SetRect

CRect::CopyRect

CRect::SetRectEmpty

CopyRect