Vcl.StdCtrls.TCustomListBox.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.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomListBox

Description

Saves the list box items in a string list before freeing the underlying Windows control.

DestroyWnd saves the list box text string items in the Items property to internal storage in a TStringList object that it creates. It then calls the inherited DestroyWnd method to destroy the windowed control's window handle and free associated device contexts.

See Also