Solved

Hiding MDI document windows

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
countEvens challenge 2 58
lucky13 challenge 11 112
NotAlone Challenge 20 72
MaxSpan challenge 9 67
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now