CRect::operator +

Use this operator to obtain a CRect object that is equal to this CRect, but displaced by the specified offsets. The parameter's x and y (or cx and cy) parameters are added to CRect's position.

Use the third overloaded version of this function to obtain a new CRect object that is equal to this CRect object, but inflated by the number of units specified in each member of the size parameter.

CRect operator +( POINT point ) const;

CRect operator +( LPCRECT lpRect ) const;

CRect operator +( SIZE size ) const;

At a Glance

Header file: Afxwin.h
Platforms:
Versions: 1.0 and later
Complete documentation: Visual C++ documentation

See Also

CRect Overview, CRect Operators, Simple Value Types, CRect::operator +=, CRect::operator -, CRect::OffsetRect, CRect::InflateRect