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.
CWnd::GetUpdateRgn
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  int GetUpdateRgn( CRgn* pRgn, BOOL bErase = FALSE );
 
  Parameter   Description
 
  <pRgn>      Identifies the update region.
 
  <bErase>    Specifies whether the background will be erased and
              nonclient areas of child windows will be drawn. If the value
              is FALSE, no drawing is done.
 
  Remarks
 
  Retrieves the update region into a region identified by <pRgn>. The
  coordinates of this region are relative to the upper-left corner (client
  coordinates).
 
  The BeginPaint member function automatically validates the update
  region, so any call to GetUpdateRgn made immediately after a call to
  BeginPaint retrieves an empty update region.
 
  Return Value
 
  Specifies a short-integer flag that indicates the type of resulting
  region. The value can take any one of the following:
 
  Value           Meaning
 
  COMPLEXREGION   The region has overlapping borders.
 
  ERROR           No region was created.
 
  NULLREGION      The region is empty.
 
  SIMPLEREGION    The region has no overlapping borders.
 
  See Also
 
  CWnd::BeginPaint, ::GetUpdateRgn
 
 
                                     -♦-