Vcl.Controls.TWinControl.CreateHandle
Delphi
procedure CreateHandle; virtual;
C++
virtual void __fastcall CreateHandle();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.Controls.pas Vcl.Controls.hpp |
Vcl.Controls | TWinControl |
Description
Creates underlying screen object.
CreateHandle creates the Microsoft Windows screen object that underlies the control. if it does not already exist. The new window handle becomes the value of the Handle property.
CreateHandle creates or locates the parent control's window before it creates a window for the control itself.
Note: If the Parent property is nil (Delphi) or NULL (C++), CreateHandle raises an exception.