Vcl.StdCtrls.TCustomComboBox.CreateWnd

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure CreateWnd; override;

C++

virtual void __fastcall CreateWnd();

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomComboBox

Description

Creates the Windows control that represents the combo box.

Vcl.StdCtrls.TCustomComboBox.CreateWnd inherits from Vcl.StdCtrls.TCustomCombo.CreateWnd. All content below this line refers to Vcl.StdCtrls.TCustomCombo.CreateWnd.

Creates the Windows control that represents the combo box.

The CreateHandle method calls CreateWnd to handle the particulars of creating the combo box window. TCustomCombo overrides the inherited method to ensure that the newly-created window and the TCustomCombo properties correctly reflect each other.

The Windows control for the combo box can be temporarily destroyed and recreated in order to set properties that require changing the window creation parameters. Thus, CreateWnd may be called more than once during the lifetime of the TCustomCombo instance.

See Also