GetMetaRgn  1OVFWWS 

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 one.

If the function fails, the return value is zero.

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