Share via


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.

Return Value

Nonzero if the function is successful; otherwise 0.

Remarks

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

Requirements

Header: afxext.h

See Also

Reference

CMetaFileDC Class

Hierarchy Chart

CMetaFileDC::CMetaFileDC

CDC::SetAttribDC

CreateMetaFile