RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomCombo.CreateWnd Method

Creates the Windows control that represents the combo box.

Pascal
procedure CreateWnd; override;
C++
virtual __fastcall CreateWnd();

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!