Vcl.Forms.TApplication.CreateHandle
Delphi
procedure CreateHandle;
C++
void __fastcall CreateHandle();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TApplication |
Description
Generates a main window for the application if it does not already have one.
Do not call CreateHandle directly. In EXEs, the application's constructor calls CreateHandle. In DLLs it does not.
CreateHandle encapsulates much of what traditional Windows programs write in WinMain. For example, CreateHandle registers the Window Class, creates the application window and determines how the application window is shown.