elito
asked on
Help on closing an MDI document window
Hi!
I’m writing an MDI-Doc/View application. I have added one option that reads a file from the disk and displays its contents in a new MDI window (Here, I'm not using the standard serialization mechanism). This works fine, the only problem I have is that if there already exists an MDI child window, I would like to automatically close it (if it’s empty, of course). What would be the best way to do that?
Thanks for your help.
I’m writing an MDI-Doc/View application. I have added one option that reads a file from the disk and displays its contents in a new MDI window (Here, I'm not using the standard serialization mechanism). This works fine, the only problem I have is that if there already exists an MDI child window, I would like to automatically close it (if it’s empty, of course). What would be the best way to do that?
Thanks for your help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Okay just found it and close :-)
To enumerate all windows for one document type you can use DocTemplate class ->from this class you can get all views associated with given document type and so on.
To enumerate all windows for one document type you can use DocTemplate class ->from this class you can get all views associated with given document type and so on.
ASKER