Modifying the window list and/or Ctrl+Tab behaviour in an MDI app
-
Hi, By default, when using Ctrl+Tab or the Window menu to switch between windows in a standard MDI app, it leaves the window list in its current order. The behaviour in Visual Studio (ignoring the popup which lists the windows) always puts the current window at the top of the list of windows. This then allows easy toggling between two top windows using Ctrl+Tab, as the previous window is then made the second in the list, so you don't have to cycle through all the open windows to get back to the one you started from. I am trying to replicate the VS behaviour in an MFC MDI app, but can't find a way of re-ordering the window list. Has anyone else managed to do this? Paul.
"The way of a fool seems right to him, but a wise man listens to advice" - Proverbs 12:15 (NIV)
-
Hi, By default, when using Ctrl+Tab or the Window menu to switch between windows in a standard MDI app, it leaves the window list in its current order. The behaviour in Visual Studio (ignoring the popup which lists the windows) always puts the current window at the top of the list of windows. This then allows easy toggling between two top windows using Ctrl+Tab, as the previous window is then made the second in the list, so you don't have to cycle through all the open windows to get back to the one you started from. I am trying to replicate the VS behaviour in an MFC MDI app, but can't find a way of re-ordering the window list. Has anyone else managed to do this? Paul.
"The way of a fool seems right to him, but a wise man listens to advice" - Proverbs 12:15 (NIV)
Paul S. Vickery wrote:
but can't find a way of re-ordering the window list
I am not sure if you can change menu item positions, I have never tried to do it. If it is not supported perhaps you could manage the lists order in a more appropriate memory structure and just change the menu item text and which item it references in the structure.