RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TApplication.CreateHandle Method

Generates a main window for the application if it does not already have one.

Pascal
procedure CreateHandle;
C++
__fastcall CreateHandle();

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. 

 

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