Link to home
Start Free TrialLog in
Avatar of elito
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.
ASKER CERTIFIED SOLUTION
Avatar of migel
migel

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of elito
elito

ASKER

But this will close the current active child window, I want to close an empty document window.
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.