Share via


CDC::GetClipBox

This method retrieves the dimensions of the tightest bounding rectangle around the clipping boundary. The dimensions are copied to the buffer pointed to by lpRect.

virtual int GetClipBox(
LPRECT lpRect )
const; 

Parameters

  • lpRect
    Pointer to the RECT structure or CRect object that is to receive the rectangle dimensions.

Return Value

The type of the clipping region. 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.

Requirements

**  Windows CE versions:** 1.0 and later
  Header file: Declared in Afxwin.h
  Platform: H/PC Pro, Palm-size PC, Pocket PC

See Also

CDC::SelectClipRgn, CRect, RECT