SetMetaFile
Sets a picture from a HMETAFILE to be displayed in the control
BOOL SetMetaFile( HMETAFILE hMetafile, int nExtX, int nExtY, BOOL bTakeOwnership = TRUE )
return true when successful else false
EX1
#include <ocGDI.h> #include <Control.h> void PictureControl_SetMetaFile() { PictureControl pc; string path = GetAppPath(TRUE) + "fgroup.ocs"; RECT16 rect; HMETAFILE hmf = get_packed_metafile(path, "expdecy3", &rect); pc.SetMetaFile(hmf, rect.right, rect.bottom) }
Control.h