Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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.

GetClipRgn

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

This function retrieves a handle identifying the current application-defined clipping region for the specified device context.


int GetClipRgn(
  HDC hdc, 
  HRGN hrgn
); 

hdc

[in] Handle to the device context.

hrgn

[in, out] Handle to an existing region before the function is called.

After the function returns, this parameter is a handle to a copy of the current clipping region.

If there is no clipping region for the specified device context, zero indicates success.

If there is a clipping region for the specified device context, 1 indicates success.

–1 indicates that an error occurred.

To get extended error information, call GetLastError.

An application-defined clipping region is a clipping region identified by the SelectClipRgn function. It is not a clipping region created when the application calls the BeginPaint function.

If the function succeeds, the hrgn parameter is a handle to a copy of the current clipping region. Subsequent changes to this copy will not affect the current clipping region.

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