Call this member function to move a CRect object 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.
void OffsetRect( int x, int y );
void OffsetRect( POINT point );
void OffsetRect( SIZE size );
Header file: | Afxwin.h |
Platforms: | |
Versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
CRect Overview, CRect Member Functions, Simple Value Types, CRect::operator +, CRect::operator +=, CRect::operator -, CRect::operator -=