This operator obtains 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 implementation of this operator 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.
Header file: | Afxwin.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
CRect operator +( POINT point ) const;
CRect operator +( LPCRECT lpRect ) const;
CRect operator +( SIZE size ) const;
CRect::operator +=, CRect::operator -, CRect::OffsetRect, CRect::InflateRect