The GetMetaRgn function retrieves the current metaregion for the specified device context.
int GetMetaRgn(
HDC hdc, // handle of device context
HRGN hrgn // handle of region
);
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Windows NT: To get extended error information, call GetLastError.
If the function succeeds, hrgn is a handle to a copy of the current metaregion. Subsequent changes to this copy will not affect the current metaregion.
The current clipping region of a device context is defined by the intersection of its clipping region and its metaregion.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in wingdi.h.
Import Library: Use gdi32.lib.
Clipping Overview, Clipping Functions, SetMetaRgn