Open windows in MDI applications
Posted on 1999-01-26
I have a MDI application that uses 4 or 5 different Document templates. I want to be able to check to see if any of these windows are open at some point and if they are I want to close them. I want to do this from my MainApp Class. I know I need to use GetActiveView and all that but I would like some exact code to use. They don't need to be searched for in any particular order but depending on which documents are open, I may need to access some functions inside the View class of the document. I guess what I need is a methodical way of searching through all documents that are open in an application and tell them to close, keeping in mind that the documents will be from different classes.