displayiing a Dialog over a Dialog
-
I am displayiing a Dialog over a Dialog using MyDlg->DispDialog.DoModal(); only the second Dialog (DispDialog) is displayed. How i can display both the Dialog same time. The Size of second Dialog is more than first Dialog.
-
I am displayiing a Dialog over a Dialog using MyDlg->DispDialog.DoModal(); only the second Dialog (DispDialog) is displayed. How i can display both the Dialog same time. The Size of second Dialog is more than first Dialog.
If you only need to have your first dialog visible (without having to inject inputs), then you can simply use MoveWindow for the second dialog. If it needs to receive user inputs, then you need to use modeless dialogs. You can have a look at this tutorial[^]
Cédric Moonen Software developer
Charting control -
I am displayiing a Dialog over a Dialog using MyDlg->DispDialog.DoModal(); only the second Dialog (DispDialog) is displayed. How i can display both the Dialog same time. The Size of second Dialog is more than first Dialog.
anilksingh wrote:
I am displayiing a Dialog over a Dialog using MyDlg->DispDialog.DoModal(); only the second Dialog (DispDialog) is displayed. How i can display both the Dialog same time. The Size of second Dialog is more than first Dialog.
Create Modeless dialogs Knock out 't' from can't, You can if you think you can :cool:
-
I am displayiing a Dialog over a Dialog using MyDlg->DispDialog.DoModal(); only the second Dialog (DispDialog) is displayed. How i can display both the Dialog same time. The Size of second Dialog is more than first Dialog.
Are you doing this on the click of OK button? What happens to the first dialog? Does the dialog close or something else? If you want both dialogs to show and respond to user inputs create Modeless dialog as A_Laxman and Cedric suggests. Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_ -- modified at 8:19 Wednesday 14th June, 2006
-
I am displayiing a Dialog over a Dialog using MyDlg->DispDialog.DoModal(); only the second Dialog (DispDialog) is displayed. How i can display both the Dialog same time. The Size of second Dialog is more than first Dialog.
-
I am displayiing a Dialog over a Dialog using MyDlg->DispDialog.DoModal(); only the second Dialog (DispDialog) is displayed. How i can display both the Dialog same time. The Size of second Dialog is more than first Dialog.
If you are displaying the dialog on click of another button the you can just do the DoModal() for another dialog and don't close the first one.. and If your dialog on top is covering first dialog then you can set the position of dialog by SetWindowPos. If you Need to handle both the dialogs at same time you need to create them modeless Cheers "Peace of mind through Technology" -- modified at 8:38 Wednesday 14th June, 2006