RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TApplication.DialogHandle Property

Provides a mechanism for using non-VCL dialog boxes in an application.

Pascal
property DialogHandle: HWnd;
C++
__property HWnd DialogHandle;

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!