This documentation is archived and is not being maintained.

CMetaFileDC::Create 

Construct a CMetaFileDC object in two steps.


BOOL Create(
   LPCTSTR lpszFilename = NULL 
);

Parameters

lpszFilename

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.

Show: