Use this operator to subtract a CPoint or CSize object from CPoint. The third overloaded version of this operator offsets a CRect by the negation of CPoint.
Use the unary operator to negate CPoint.
CSize operator –( POINT point ) const;
CPoint operator –( SIZE size ) const;
CRect operator –( const RECT* lpRect ) const;
CPoint operator –( ) const;
Header file: | Afxwin.h |
Platforms: | |
Versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
CPoint Overview, CPoint Operators, Simple Value Types, CPoint::operator –=, CPoint::operator +=, CPoint::operator +, CSize::operator -, CRect::operator -, CPoint::Offset, CRect::OffsetRect