CRect::OffsetRect

void OffsetRect( int x, int y );

void OffsetRect( POINT point );

void OffsetRect( SIZE size );

Parameters

x

Specifies the amount to move left or right. It must be negative to move left.

y

Specifies the amount to move up or down. It must be negative to move up.

point

Contains a POINT structure or CPoint object specifying both dimensions by which to move.

size

Contains a SIZE structure or CSize object specifying both dimensions by which to move.

Remarks

Moves CRect by the specified offsets. Moves CRect x units along the x-axis and y units along the y-axis. The x and y parameters are signed values, so CRect can be moved left or right and up or down.

CRect OverviewClass MembersHierarchy Chart

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