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::CopyRgn
CRgn                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  int CopyRgn( CRgn* pRgnSrc );
 
  Parameter   Description
 
  <pRgnSrc>   Identifies an existing region.
 
  Remarks
 
  Copies the region defined by <pRgnSrc> into the CRgn object. The new
  region replaces the region formerly stored in the CRgn object. This
  function is a special case of CombineRgn.
 
  Return Value
 
  Specifies the type of the resulting region. It can be one of the
  following values:
 
  Value           Meaning
 
  COMPLEXREGION   New region has overlapping borders.
 
  ERROR           No new region created.
 
  NULLREGION      New region is empty.
 
  SIMPLEREGION    New region has no overlapping borders.
 
  See Also
 
  CRgn::CombineRgn, ::CombineRgn
 
 
                                     -♦-