CRect::operator +

CRect operator +( POINT point ) const;

CRect operator +( LPCRECT lpRect ) const;

CRect operator +( SIZE size ) const;

Return Value

The CRect resulting from moving or inflating CRect by the number of units specified in the parameter.

Parameters

point

A POINT structure or CPoint object that specifies the number of units to move the return value.

size

A SIZE structure or CSize object that specifies the number of units to move the return value.

lpRect

Points to a RECT structure or CRect object that contains the number of units to inflate each side of the return value.

Remarks

The first two overloads return a CRect object that is equal to CRect displaced by the specified offsets. The parameter’s x and y (or cx and cy) parameters are added to CRect’s position.

The third overload returns a new CRect that is equal to CRect inflated by the number of units specifed in each member of the parameter.

CRect OverviewClass MembersHierarchy Chart

See Also   CRect::operator +=, CRect::operator -, CRect::OffsetRect, CRect::InflateRect