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.