Share via


COleClientItem::SetIconicMetafile

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

BOOL SetIconicMetafile( 
   HGLOBAL hMetaPict  
);

Parameters

  • hMetaPict
    A handle to the metafile used for drawing the item's icon.

Return Value

Nonzero if successful; otherwise 0.

Remarks

Use GetIconicMetafile to retrieve the metafile.

The hMetaPict parameter is copied into the item; therefore, hMetaPict must be freed by the caller.

Requirements

Header: afxole.h

See Also

Reference

COleClientItem Class

Hierarchy Chart

COleClientItem::GetIconicMetafile

Other Resources

COleClientItem Members