Creates a METAFILEPICT structure that contains a metafile in which the icon and label are drawn.
HGLOBAL OleMetafilePictFromIconAndLabel(
HICON hIcon, //Handle to the icon to be drawn into
// the metafile
LPOLESTR lpszLabel, //Pointer to the string to be used as
// the icon label
LPOLESTR lpszSourceFile, //Pointer to the string that contains
// the path to the icon file
UINT iIconIndex //Index of icon in lpszSourceFile
);
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in ole2.h.
Import Library: Included as a resource in ole32.dll.
OleGetIconOfClass, OleGetIconOfFile