CSize::operator +

CSize operator +( SIZE size ) const;

CPoint operator +( POINT point ) const;

CRect operator +( const RECT* lpRect ) const;

Remarks

These operators add this CSize value to the value of parameter. See the following descriptions of the individual operators:

Example

CSize sz1(100, 100);
CSize sz2( 50,  25);
CSize szOut;

szOut = sz1 + sz2;

CSize szResult(150, 125);
ASSERT(szOut == szResult);

// works with SIZE, too

sz1 = CSize(100, 100);
SIZE sz3;
sz3.cx = 50;
sz3.cy = 25;

szOut = sz1 + sz3;
ASSERT(szOut == szResult);

CSize OverviewClass MembersHierarchy Chart

See Also   CPoint::operator +, CRect::operator +