Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content


Retrieves the dimensions of the tightest bounding rectangle around the current clipping boundary.

virtual int GetClipBox( 
   LPRECT lpRect  
) const;


Points to the RECT structure or CRect object that is to receive the rectangle dimensions.

The clipping region's type. It can be any of the following values:

  • COMPLEXREGION   Clipping region has overlapping borders.

  • ERROR   Device context is not valid.

  • NULLREGION   Clipping region is empty.

  • SIMPLEREGION   Clipping region has no overlapping borders.

The dimensions are copied to the buffer pointed to by lpRect.

Header: afxwin.h

© 2015 Microsoft