SetEnhMetaFileBits function (wingdi.h)
The SetEnhMetaFileBits function creates a memory-based enhanced-format metafile from the specified data.
HENHMETAFILE SetEnhMetaFileBits( [in] UINT nSize, [in] const BYTE *pb );
Specifies the size, in bytes, of the data provided.
Pointer to a buffer that contains enhanced-metafile data. (It is assumed that the data in the buffer was obtained by calling the GetEnhMetaFileBits function.)
If the function succeeds, the return value is a handle to a memory-based enhanced metafile.
If the function fails, the return value is NULL.
When the application no longer needs the enhanced-metafile handle, it should delete the handle by calling the DeleteEnhMetaFile function.
The SetEnhMetaFileBits function does not accept metafile data in the Windows format. To import Windows-format metafiles, use the SetWinMetaFileBits function.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||wingdi.h (include Windows.h)|