Share via


CMetaFileDC::Close

Closes the metafile device context and creates a Windows metafile handle that can be used to play the metafile by using the CDC::PlayMetaFile member function.

HMETAFILE Close( );

Return Value

A valid HMETAFILE if the function is successful; otherwise NULL.

Remarks

The Windows metafile handle can also be used to manipulate the metafile with Windows functions such as CopyMetaFile.

Delete the metafile after use by calling the Windows DeleteMetaFile function.

Requirements

Header: afxext.h

See Also

Reference

CMetaFileDC Class

Hierarchy Chart

CDC::PlayMetaFile

CloseMetaFile

CopyMetaFile

DeleteMetaFile