Vcl.Controls.TControlCanvas.Destroy
Delphi
destructor Destroy; override;
C++
__fastcall virtual ~TControlCanvas(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
destructor | public | Vcl.Controls.pas Vcl.Controls.hpp |
Vcl.Controls | TControlCanvas |
Description
Destroys an instance of TControlCanvas.
Do not call Destroy directly in an application. The controls that use a TControlCanvas object destroy it by calling Free from their own destructors. Free verifies that the TControlCanvas object is not nil and only then calls Destroy.
Destroy releases the handle to a device context (HDC) that the control canvas uses before freeing the memory associated with the object.