Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CRect::OffsetRect
CRect                                       Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void OffsetRect( int x, int y );
  void OffsetRect( POINT point );
  void OffsetRect( SIZE size );
 
  Parameter   Description
 
  <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 or CPoint specifying both dimensions by
              which to move.
 
  <size>      Contains a SIZE or CSize 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.
 
 
                                     -♦-