-
April 30th, 2004, 11:04 AM
#1
MDI is hidden behind CDialog
I have a Dialog
and when I load a MDI from that dialog,
the MDI will hide behind the dialog.
Even after i hide the dialog,
I still can not access to the MDI.
Help!
Microsoft = Tiny software. Small software. Immature software.
But I'm using it.
Girl = Money x Time;
Time = Money;
Girl = Money x Money;
-
April 30th, 2004, 11:22 AM
#2
Are you using a modal or a modeless dialog ?
-
April 30th, 2004, 11:26 AM
#3
I am using a modal Dialog.
Microsoft = Tiny software. Small software. Immature software.
But I'm using it.
Girl = Money x Time;
Time = Money;
Girl = Money x Money;
-
April 30th, 2004, 11:31 AM
#4
Ok.
First. Why do you want to hide the modal dialog ?
Note that one of the things DoModal does is to disable the parent window. So, that is the reason, why you won't be able to use any other window when you are using a modal dialog. And that is the same reason, you are not able to use the MDI possibly. Just hiding the modal window does not change the enabled/disabled state of the parent window. So, after hiding the modal dialog, you need to enable the parent explicitly by calling EnableWindow..
Having said that, if your app calls for being able to access the MDI even when the dialog is existing, why not use a modeless dialog. One of the things modeless dialogs do is to just hide the dialog when you click on the close button ( the dialog itself is not destroyed ).
-
April 30th, 2004, 11:51 AM
#5
YES!! IT WORKS!
THANK YOU SO MUCH.
d-_-b two thumbs for you.
HOW I DID:
after showing up the MDI
pMainFrame->ShowWindow(SW_SHOW);
pMainFrame->UpdateWindow();
I Added
pMainFrame->EnableWindow(TRUE);
Microsoft = Tiny software. Small software. Immature software.
But I'm using it.
Girl = Money x Time;
Time = Money;
Girl = Money x Money;
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
|