Hiding MDI document windows
Posted on 1998-06-28
I have an MDI app that uses documents of fixed sizes (they are images). When one of them is maximized, I want to "clean up" the display by hiding the other open documents. (Since the documents are of fixed size, they may not cover the entire MDIClient area.) I have done this by stepping through all open document CMDIChildWnds and hiding the appropriate windows using ShowWindow(SW_HIDE), but the problem is with the "open document" list in the Window menu: some of the document titles disappear. How can I stop these titles from disappearing from the Windows menu when their windows are hidden? Perhaps there is a simpler way of hiding all other windows that doesn't cause this side-effect.