SetEnhMetaFile
Sets a picture from a HENHMETAFILE to be displayed in the control
BOOL SetEnhMetaFile( HENHMETAFILE hEnhMetafile, BOOL bTakeOwnership = TRUE )
return true when successful else false
EX1
#include <ocGDI.h> #include <Control.h> void PictureControl_SetEnhMetaFile() { PictureControl pc; string path = GetAppPath() + "GraphMeta.emf"; HENHMETAFILE henhmf1 = load_enhanced_metafile(path); pc.SetEnhMetaFile(henhmf1); }
Control.h