Index   Commented   Search   About

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,
//Points to the string to be used as the icon label
LPOLESTR lpszSourceFile,
//Points to the string that contains the path to the icon file
UINT iIconIndex
//Index of icon in lpszSourceFile
);

Parameters

hIcon

Handle to the icon that is to be drawn into the metafile.

lpszLabel

Points to the string to be used as the icon label.

lpszSourceFile

Points to the string that contains the path and filename of the icon file. This string can be obtained from the user or from the registration database.

iIconIndex

Provides the index to the icon within the lpszSourceFile file.

Return Value

HGLOBAL

Indicates the hGlobal returned is the handle to a METAFILEPICT structure containing the icon and label. The metafile uses the MM_ANISOTROPIC mapping mode.

See Also

OleGetIconOfClass, OleGetIconOfFile

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder

More Online Helps

Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun