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.
CRgn::OffsetRgn
CRgn                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  int OffsetRgn( int x, int y );
  int OffsetRgn( POINT point );
 
  Parameter   Description
 
  <x>         Specifies the number of units to move left or right.
 
  <y>         Specifies the number of units to move up or down.
 
  <point>     The x-coordinate of <point> specifies the number of units to
              move left or right. The y-coordinate of <point> specifies
              the number of units to move up or down. The <point>
              parameter may be either a POINT structure or a CPoint
              object.
 
  Remarks
 
  Moves the region stored in the CRgn object by the specified offsets. The
  function moves the region <x> units along the x-axis and <y> units along
  the y-axis.
 
  Return Value
 
  Specifies the new region's type. It can be any one of the following
  values:
 
  Value           Meaning
 
  COMPLEXREGION   Region has overlapping borders.
 
  ERROR           Region handle is not valid.
 
  NULLREGION      Region is empty.
 
  SIMPLEREGION    Region has no overlapping borders.
 
  See Also
 
  ::OffsetRgn
 
 
                                     -♦-