CMetaFileDC::Close

Syntax

HANDLE Close();

Remarks

Closes the metafile device context and creates a Windows metafile handle that can be used to play the metafile by using the CDC::PlayMetaFile function and also used to manipulate the metafile with Windows functions such as CopyMetaFile.

The metafile should be deleted after use by calling the Windows DeleteMetaFile function.

Return Value

A valid HANDLE to a metafile if the function is successful. Otherwise, it is NULL.

See Also

CDC::PlayMetaFile, ::CloseMetaFile, GetMetaFileBits, CopyMetaFile, ::DeleteMetaFile