RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOleContainer.GetIconMetaPict Method

Returns the global memory handle of a metafile containing the OLE object's icon.

Pascal
function GetIconMetaPict: HGlobal;
C++
__fastcall HGlobal GetIconMetaPict();

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!