Frees a metafile resource given its handle.
procedure DestroyMetaPict(MetaPict: HGlobal);
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.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|