RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
OleCtnrs.DestroyMetaPict Function

Frees a metafile resource given its handle.

Pascal
procedure DestroyMetaPict(MetaPict: HGlobal);
C++
DestroyMetaPict(HGlobal MetaPict);

OleCtnrs

Call DestroyMetaPict to free a metafile obtained using the GetIconMetaPict method of TOleContainer

You do not need to use DestroyMetaPict to free metafiles represented using TMetafile. These are freed automatically when the TMetafile instance is destroyed. However, if you assign a new value to the Handle property of TMetafile, thereby replacing its old metafile, you must free the old metafile by calling DestroyMetaPict. 

 

TOleContainer 

TMetafile 

TMetafile

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