Solved

Hiding MDI document windows

Posted on 1998-06-28
3
308 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 100 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

705 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