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.

SelectClipRgn

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

This function selects a region as the current clipping region for the specified device context.


int SelectClipRgn(
  HDC hdc, 
  HRGN hrgn
); 

hdc

[in] Handle to the device context.

hrgn

[in] Handle to the region to be selected.

The return value specifies the region'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 a single rectangle.

ERROR indicates that an error occurred; the current clipping region is unaffected.

To get extended error Information, call GetLastError.

Only a copy of the selected region is used. The region itself can be selected for any number of other device contexts or it can be deleted.

The SelectClipRgn function assumes that the coordinates for a region are specified in device units.

To remove a device-context's clipping region, specify a NULL region handle.

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

Community Additions

Show:
© 2015 Microsoft