This is a type of device context that allows a metafile object to be created (Windows only), and has most of the characteristics of a normal wxDC. The Close member must be called after drawing into the device context, to return a metafile. The only purpose for this at present is to allow the metafile to be copied to the clipboard (see wxMetaFile).
Adding metafile capability to an application should be easy if you already write to a wxDC; simply pass the wxMetaFileDC to your drawing function instead. You may wish to conditionally compile this code so it is not compiled under X (although no harm will result if you leave it in).
wxMetaFileDC::wxMetaFileDC
voidwxMetaFileDCchar *filename = NULL
Constructor. If no filename is passed, the metafile is created in memory.
wxMetaFileDC::wxMetaFileDC
voidwxMetaFileDC
Destructor.
wxMetaFileDC::Close
wxMetaFile *Close
This must be called after the device context is finished with. A metafile is returned, and ownership of it passes to the calling application (so it should be destroyed explicitly).