CPoint Operators

Operations
operator == Checks for equality between two points.
operator != Checks for inequality between two points.

Operators Returning CPoint Values
operator += Offsets CPoint by adding a size or point.
operator –= Offsets CPoint by subtracting a size or point.
operator + Returns the sum of a CPoint and a size or point.
operator – Returns the difference of a CPoint and a size, or the negation of a point.

Operators Returning CSize Values
operator – Returns the size difference between two points.

Operators Returning CRect Values
operator + Returns a CRect offset by a size.
operator – Returns a CRect offset by a negative size.

See Also

CPoint Overview, CPoint Member Functions, Simple Value Types