Vcl.OleCtnrs.DestroyMetaPict
Delphi
procedure DestroyMetaPict(MetaPict: HGlobal);
C++
extern DELPHI_PACKAGE void __fastcall DestroyMetaPict(NativeUInt MetaPict);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.OleCtnrs.pas Vcl.OleCtnrs.hpp |
Vcl.OleCtnrs | Vcl.OleCtnrs |
Description
Frees a metafile resource given its handle.
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.