CPoint Operators

Operations

Operator Description
operator == Checks for equality between two points.
operator != Checks for inequality between two points.

Operators That Return CPoint Values

Operator Description
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 That Return CSize Values

Operator Description
operator Returns the size difference between two points.

Operators That Return CRect Values

Operator Description
operator + Returns a CRect offset by a size.
operator Returns a CRect offset by a negative size.