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.
CDC::GetClipBox
CDC                                         Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  int GetClipBox( LPRECT lpRect ) const;
 
  Parameter   Description
 
  <lpRect>    Points to the RECT or CRect that is to receive the
              rectangle dimensions.
 
  Remarks
 
  Retrieves the dimensions of the tightest bounding rectangle around the
  current clipping boundary. The dimensions are copied to the buffer
  pointed to by <lpRect>.
 
  Return Value
 
  The clipping region's type. It can be any one of the following values:
 
  Value           Meaning
 
  COMPLEXREGION   Clipping region has overlapping borders.
 
  ERROR           Device context is not valid.
 
  NULLREGION      Clipping region is empty.
 
  SIMPLEREGION    Clipping region has no overlapping borders.
 
  See Also
 
  ::GetClipBox
 
 
                                     -♦-