Vcl.OleCtnrs.TOleContainer.GetIconMetaPict

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetIconMetaPict: HGlobal;

C++

NativeUInt __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.

See Also