CRect::OffsetRect

This method moves a CRect object by the specified offsets (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.

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

void OffsetRect( int x, int y );

void OffsetRect ( POINT point );

void OffsetRect( SIZE size );

See Also

CRect::operator +, CRect::operator +=, CRect::operator -, CRect::operator -=