-
July 15th, 2010, 08:44 PM
#1
Problem with Modal Dialog
I have multiple dialog applications. One dialog opens the another dialog. I am opening a Dialog say Dialog 2 from Dialog1 by calling DoModal() method. I am opening an another dialog say Dialog3 from Dialog2 using the same method DoModal(). Even after opening Dialog3 i can access Dialog2 just like Dialog3 is a modeless dialog. But i want Dialog3 to be Modal so that as long as Dialog3 is open user can't access dialog2.
Please HELP
ABM
-
July 15th, 2010, 08:57 PM
#2
Re: Problem with Modal Dialog
Do you mean multiple applications, or one application with multiple dialogs?
-
July 15th, 2010, 09:03 PM
#3
Re: Problem with Modal Dialog
one application multiple dialogs. sorry for confusion
ABM
-
July 15th, 2010, 09:33 PM
#4
Re: Problem with Modal Dialog
Is this possible to have modal dialog over another modal dialog in one application. That's what i am asking. If yes, so what i am doing wrong?
Please HELP!!!
ABM
-
July 15th, 2010, 09:55 PM
#5
Re: Problem with Modal Dialog
I tested what you said. I have three dlg.
in a button of dlg1, I make dlg2 DoModel, code link:
void CDlgA::OnButton1()
{
// TODO: Add your control notification handler code here
CDlgB dlg_b;
dlg_b.DoModal();
}
and in a button of dlg2, I make dlg3 DoModel,
and after opening Dialog3 , I can not access Dialog2
so I wonder how you create your dialog?
-
July 15th, 2010, 10:05 PM
#6
Re: Problem with Modal Dialog
I am not sure why its not working. Even i open a CColorDialog which supposed to be a modal dialog from mfc. But i still able to access the dialog which opens CColorDialog. I am confused. Supposed to be the simplest thing, but still it is very complex.
I need help. There has to be wrong with some my dialog properties which is making it behave like that.
Regards
ABM
-
July 16th, 2010, 01:22 AM
#7
Re: Problem with Modal Dialog
you'd better put your code about how you open your dialog and what property it have
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|