Vcl.ComCtrls.TAnimate.DestroyWnd

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DestroyWnd; override;

C++

virtual void __fastcall DestroyWnd();

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TAnimate

Description

Destroys the control's window.

Vcl.ComCtrls.TAnimate.DestroyWnd inherits from Vcl.Controls.TWinControl.DestroyWnd. All content below this line refers to Vcl.Controls.TWinControl.DestroyWnd.

Destroys the control's window.

DestroyWnd is called when the control needs to replace its window. For example, changing properties that are implemented by window parameter settings require the control to be destroyed and then recreated using the CreateWnd method.

Before the window is destroyed, DestroyWnd saves a copy of the control's text in memory, frees any device contexts, and finally calls DestroyWindowHandle. When the window is recreated, the stored copy of the control's text is assigned to the new window.

See Also