Vcl.Forms.TApplication.DialogHandle
Delphi
property DialogHandle: HWnd read GetDialogHandle write SetDialogHandle;
C++
__property HWND DialogHandle = {read=GetDialogHandle, write=SetDialogHandle, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TApplication |
Description
Provides a mechanism for using non-VCL dialog boxes in an application.
Use DialogHandle when displaying a modeless dialog box that was created using the CreateDialog API function. Assigning the handle of the modeless dialog box to DialogHandle allows the dialog to see messages from the application's message loop.
Assign the handle of the modeless dialog box to DialogHandle when it receives an activation message (WM_NCACTIVATE) and set DialogHandle to zero when the dialog box receives a deactivation message.
See Also
Code Examples