CPoint::operator -

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.

Syntax

CSize operator –( POINT point ) const;

CPoint operator –( SIZE size ) const;

CRect operator –( const RECT* lpRect ) const;

CPoint operator –( ) const;

At a Glance

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

See Also

CPoint Overview, CPoint Operators, Simple Value Types, CPoint::operator –=, CPoint::operator +=, CPoint::operator +, CSize::operator -, CRect::operator -, CPoint::Offset, CRect::OffsetRect