Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GetClipBox

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function retrieves the dimensions of the tightest bounding rectangle that can be drawn around the current visible area on the device. The visible area is defined by the current clipping region as well as any overlapping windows.


int GetClipBox(
  HDC hdc, 
  LPRECT lprc
); 

hdc

[in] Handle to the device context.

lprc

[out] Long pointer to a RECT structure that is to receive the rectangle dimensions.

The return value specifies the clipping box's complexity.

NULLREGION indicates that the region is empty.

SIMPLEREGION indicates that the region is a single rectangle.

COMPLEXREGION indicates that the region is more than one rectangle.

ERROR indicates that an error occurred.

To get extended error information, call GetLastError.

GetClipBox returns logical coordinates based on the specified device context.

Headerwindows.h
Librarycoredll.lib
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show:
© 2014 Microsoft