Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer


Construct a CMetaFileDC object in two steps.

BOOL Create(
   LPCTSTR lpszFilename = NULL 



Points to a null-terminated character string. Specifies the filename of the metafile to create. If lpszFilename is NULL, a new in-memory metafile is created.

Nonzero if the function is successful; otherwise 0.

First, call the constructor CMetaFileDC, then call Create, which creates the Windows metafile device context and attaches it to the CMetaFileDC object.

© 2016 Microsoft