Vcl.OleCtnrs.TOleContainer.GetIconMetaPict
Delphi
function GetIconMetaPict: HGlobal;
C++
unsigned __fastcall GetIconMetaPict();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.OleCtnrs.pas Vcl.OleCtnrs.hpp |
Vcl.OleCtnrs | TOleContainer |
Description
Returns the global memory handle of a metafile containing the OLE object's icon.
Call GetIconMetaPict to obtain a metafile handle for drawing the OLE object's icon on another canvas. Use the global DestroyMetaPict procedure to destroy the handle. If the OLE container is empty, GetIconMetaPict raises an exception.