CMetafileGraphicsContext Class
class CMetafileGraphicsContext: public CraphicsContext
device context that generates output to a metafile.Defined in: GraphicContext.h
Comments
Both Windows metafiles and enhanced metafiles are supported. The output metafile can be a real file on disk or a temporary metafile residing in memory.Class Members
Initializes the graphics context as empty
bool Create(LPCTSTR lpszFileName = NULL)
Creates a standard metafile.
bool CreateEnhanced(HDC hdcRef, LPCTSTR lpszFileName, LPCRECT prcBounds, LPCTSTR lpszDescription )
Create an enhanced metafile.
bool IsEnhanced()
Returns whether or not the encapsulated metafile is an enhanced metafile or not.
HMETAFILE Close()
Close the device context associated with the contained metafile
HMETAFILE CloseEnhanced()
Close the device context associated with the contained metafile