Поделиться через


CMetaFileDC::Create

Construct a CMetaFileDC object in two steps.

BOOL Create(
   LPCTSTR lpszFilename = NULL 
);

Параметры

  • 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.

Требования

Header: afxext.h

См. также

Основные понятия

CMetaFileDC Class

CMetaFileDC Members

Hierarchy Chart

CMetaFileDC::CMetaFileDC

CDC::SetAttribDC

CreateMetaFile