0
votes

We have an application which is MDI Based MFC Application inherited using a CFormView class. Issue is that Ctrl + F6 command is default command for all MDI applications, but in our application it is not working. When I open two or more child windows, and when pressing Ctrl + F6 the focus doesn't move to the next MDI child windows.

I have tried by creating sample new MFC MDI application and I am able to switch between windows upon Ctrl + F6 command. I am not familiar with MFC so can any one help me out in this regard.

May I have some ideas what might be the root cause for the above issue.

can i get some exact root cause, why Ctrl+f6 is not working for my customized MFC MDI application because Ctrl+f6 is supported by Excel sheet and MS word and lot of MDI applications.

1

1 Answers

0
votes

CTRL+F6 is the accelerator for next pane and this is only handled inside splitter windows.

This accelerator isn't used in MDI windows at all.

If you want to switch between the MDI windows just add your own OnCommand handler for ID_NEXT_PANE in your CMainFrame (mainfrm.cpp) implementation and use MDINext() and MDIPrev().

PS: The answer was changed after I rechecked the MFC source code. Please excuse.