OleMetafilePictFromIconAndLabel
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 |
); |
|
Parameters
hIcon
[in] Handle
to the icon that is to be drawn into the metafile.
lpszLabel
[in] Pointer
to the string to be used as the icon label.
lpszSourceFile
[in] Pointer
to the string that contains the path and file name of the icon file. This
string can be obtained from the user or from the registration database.
iIconIndex
[in] Index to
the icon within the lpszSourceFile file.
Return Value
HGLOBAL
An hGlobal
handle to a METAFILEPICT structure containing the icon and label. The
metafile uses the MM_ANISOTROPIC mapping mode.
See Also