CRect::operator -

Use this operator to obtain a CRect object that is equal to this CRect, but displaced by the specified offsets. The parameter's x and y (or cx and cy) parameters are subtracted from CRect's position.

Use the third overloaded version of this function to obtain a new CRect object that is equal to this CRect object, but deflated by the number of units specified in each member of the lpRect parameter.

CRect operator –( POINT point ) const;

CRect operator –( SIZE size ) const;

CRect operator –( LPCRECT lpRect ) const;

At a Glance

Header file: Afxwin.h
Platforms:
Versions: 1.0 and later
Complete documentation: Visual C++ documentation

See Also

CRect Overview, CRect Operators, Simple Value Types, CRect::operator -=, CRect::operator +, CRect::OffsetRect, CRect::DeflateRect, CRect::SubtractRect