Prev Next

GetMetaRgn info  Overview  Group

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

   );

Parameters

hdc
Identifies the device context.
hrgn
Identifies an existing region before the function is called. After the function returns, this parameter identifies a copy of the current metaregion.

Return Values

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

If the function succeeds, hrgn identifies 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.

See Also

SetMetaRgn