Share via


CPoint Class Members

Construction

CPoint Constructs a CPoint.

Operations

Offset Adds values to the x and y members of the CPoint.
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.

CPoint OverviewHierarchy Chart