Hello, i've been browsing these boards for a while and they have been a great help, but i have been unable to find help on one subject that i need...

Im trying to create an aplication that uses 3 active dialog boxes (i prefer dialog boxes, but would use windows if i have to), each dialog box must be able to send messages to the other 2.

Now my problem, i cannot get the dialog boxes to load together, using the following code loads the first dialog box as the main window, but the next wont load untill the first is closed, and the thrid wont load untill the second is closed.



start:
invoke GetModuleHandle, NULL
mov hInstance,eax
invoke DialogBoxParam,hInstance,ADDR DlgMainName,NULL,ADDR DlgProc,NULL
invoke ExitProcess,eax


DlgProc proc hWnd:HWND, uMsg:UINT, wParam:WPARAM, lParam:LPARAM
.IF uMsg==WM_CLOSE
invoke EndDialog, hWnd,NULL
.ELSEIF uMsg==WM_INITDIALOG
invoke DialogBoxParam,hInstance,ADDR DlgUserName,hWnd,ADDR DlgProc2,NULL
invoke DialogBoxParam,hInstance,ADDR DlgSerialName,hWnd,ADDR DlgProc2,NULL
.ELSE
mov eax,FALSE
ret
.ENDIF
mov eax,TRUE
ret
DlgProc endp

Note: DlgProc2 does exist but is too large to post here.



Could anyone please point me in the direction of any examples that may help or breifly explain how i can achieve my goal of using all three dialog boxes simultaniously?
Thanks in advance
The Phoenix
Posted on 2003-01-20 08:13:45 by the_phoenix
try using CreateDialogParam (Modeless) :)

Modal dialog(DialogBoxParam) boxes requires you to exit the dialog first before relinquishing the control to the parent.

p.s. haven't tested this one yet :grin:
Posted on 2003-01-20 15:16:30 by arkane
FIXED! :grin:

Thank you very much, its helped a lot :alright:
The Phoenix
Posted on 2003-01-20 16:03:02 by the_phoenix