OleCtnrs.DestroyMetaPict
From RAD Studio VCL Reference
Contents |
Delphi Information
From OleCtnrs.pas
procedure DestroyMetaPict(MetaPict: Cardinal);
Unit: OleCtnrs
Type: procedure
Visibility: public
C++ Information
From OleCtnrs.hpp
void __fastcall DestroyMetaPict(unsigned int MetaPict);
Unit: OleCtnrs
Type: function
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.