This operator subtracts a CPoint or CSize object from CPoint. The third overloaded implementation of this operator offsets a CRect by the negation of CPoint.
Use the unary operator to negate CPoint.
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 |
CSize operator –( POINT point ) const;
CPoint operator –( SIZE size ) const;
CRect operator –( const RECT* lpRect ) const;
CPoint operator –( ) const;
CPoint::operator –=, CPoint::operator +=, CPoint::operator +, CSize::operator -, CRect::operator -, CPoint::Offset, CRect::OffsetRect