?
Solved

Hiding MDI document windows

Posted on 1998-06-28
3
Medium Priority
?
312 Views
Last Modified: 2013-11-20
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.
0
Comment
Question by:alorence
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Expert Comment

by:chacko
ID: 1318477
Put your document,view,frame in a document template. Use CloseAllDocuments to close the view of the document. To open use OpenDocumentFile.
0
 

Author Comment

by:alorence
ID: 1318478
But I'm not interested in closing all documents, I just want to hide them while the one document window is maximized.  The user should still be able to switch to the other documents, which should be in the "open document" list in the Window menu.
0
 
LVL 3

Accepted Solution

by:
NullTerminator earned 200 total points
ID: 1318479
// hide it and place last in tab order
// check on wndBottomMost,  I know there is a wndTopMost
// you may have to place after another know window
// like the one you want to keep on top

mychildWindow.SetWindowPos( &wndBottomMost, 0, 0, 0, 0, 0);
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question