HENHMETAFILE SetEnhMetaFileBits(cbBuffer, lpData) | |||||
UINT cbBuffer; | /* buffer size | */ | |||
LPBYTE lpData; | /* buffer that contains enhanced-metafile data | */ |
The SetEnhMetaFileBits function creates a memory-based enhanced metafile from the supplied data.
cbBuffer
Specifies the size, in bytes, of the data provided.
lpData
Points to a buffer that contains enhanced-metafile data.
The return value identifies a memory-based enhanced metafile if the function is successful. Otherwise, it is NULL.
It is assumed that the data which lpData contains was obtained by calling the GetEnhMetaFileBits function.
When the application no longer needs the enhanced metafile handle, it should call the DeleteEnhMetaFile function.
The SetEnhMetaFileBits function does not accept metafile data in the windows format. To import the windows-format metafiles, use the SetWinMetaFileBits function.
DeleteEnhMetaFile, GetEnhMetaFileBits, SetWinMetaFileBits