CPoint::operator -

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.

At a Glance

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

Syntax

CSize operator ( POINT point ) const;

CPoint operator ( SIZE size ) const;

CRect operator ( const RECT* lpRect ) const;

CPoint operator ( ) const;

See Also

CPoint::operator =, CPoint::operator +=, CPoint::operator +, CSize::operator -, CRect::operator -, CPoint::Offset, CRect::OffsetRect