Solved

Override MDITile behavior

Posted on 1998-02-04
2
481 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
2 Comments
 

Accepted Solution

by:
icotton earned 100 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
bobThere java chalenge 45 94
haveThree challenge 22 121
fix34  challenge 9 140
building a service to accessed via telnet client, want colors ? 4 92
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: 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…
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 video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

808 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