Hi,
I created modal dialog with DialogBoxIndirectParam and dialogtemplate structure.
How do I get handle (HWND) of dialog?
Without handle of this dialog it causes problems showing another dialog because i dont have parent handle.
Printable View
Hi,
I created modal dialog with DialogBoxIndirectParam and dialogtemplate structure.
How do I get handle (HWND) of dialog?
Without handle of this dialog it causes problems showing another dialog because i dont have parent handle.
The hwndDlg value for the dialog box procedure for the WM_INITDIALOG message (or any dialog message) has the HWND value of the dialog box.
See Dialog Box Procedures
http://msdn.microsoft.com/en-us/libr...spx#procedures
and
http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx