CRect::operator -

This operator obtains 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 implementation of this operator 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.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

CRect operator ( POINT point ) const;

CRect operator ( SIZE size ) const;

CRect operator ( LPCRECT lpRect ) const;

See Also

CRect::operator -=, CRect::operator +, CRect::OffsetRect, CRect::DeflateRect, CRect::SubtractRect