?
Solved

Override MDITile behavior

Posted on 1998-02-04
2
Medium Priority
?
487 Views
Last Modified: 2013-11-19
I have an MFC app that has 2 vertically tiled MDI children.  When I resize, do View Toolbar, or View StatusBar, I retile by doing a pMainWnd->MDITile(MDITILE_VERTICAL).  This works well unless I have both children up, and the selected one is on the right.  In this case, when I call MDITile, it always switches the selected one to the left.  This is annoying, especially when I minimize and then maximize -- the positions of the windows are switched.  I can't seem to find anything to override.  Is there a way around this?
0
Comment
Question by:fsiegel
[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
2 Comments
 

Accepted Solution

by:
icotton earned 300 total points
ID: 1315592
The tiling operation will tile the MDI children according to their Z-order, highest window to the left.

To get this right, first set the focus to the left hand child. You could then change the focus back to the other window after the retiling operation.

As far as I can see this is the only way to get it right since the retiling operation is actually performed by a Windows message.
0
 

Author Comment

by:fsiegel
ID: 1315593
That's a reasonable answer.  I actually had thought of this
myself, but I was hoping there would be a slicker way.  I guess
since the tiling is done in a Windows message, this is the best
I can do.

Thanks -- Frank Siegel

0

Featured Post

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
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