CSize::operator -
CSize operator -( SIZE size ) const;
CPoint operator -( POINT point ) const;
CRect operator -( const RECT* lpRect ) const;
CSize operator -( ) const;
Remarks
The first three of these operators subtract this CSize value to the value of parameter. The fourth operator, the unary minus, changes the sign of the CSize value. See the following descriptions of the individual operators:
-
operator -( size ) This operation subtracts two CSize values.
-
operator -( point ) This operation offsets (moves) a POINT or CPoint value by the additive inverse of this CSize value. The cx and cy of this CSize value are subtracted from the x and y data members of the POINT value. It is analogous to the version of CPoint::operator - that takes a SIZE parameter.
-
operator -( lpRect ) This operation offsets (moves) a RECT or CRect value by the additive inverse of this CSize value. The cx and cy members of this CSize value are subtracted from the left, top, right, and bottom data members of the RECT value. It is analogous to the version of CRect::operator - that takes a SIZE parameter.
-
operator -( ) This operation returns the additive inverse of this CSize value.
CSize Overview | Class Members | Hierarchy Chart
See Also CPoint::operator -, CRect::operator -