Partager via


COleClientItem::GetIconicMetafile

Retrieves the metafile used for drawing the item's icon.

HGLOBAL GetIconicMetafile( );

Return Value

A handle to the metafile if successful; otherwise NULL.

Remarks

If there is no current icon, a default icon is returned. This is called automatically by the MFC/OLE dialogs and is usually not called directly.

This function also calls SetIconicMetafile to cache the metafile for later use.

Requirements

Header: afxole.h

See Also

Reference

COleClientItem Class

Hierarchy Chart

COleClientItem::SetIconicMetafile

Other Resources

COleClientItem Members