March 14th, 2013, 07:50 PM
How to show File menu
I have an MDI application using different menus depending on the current document template in use.
I need to show the top-level File Menu from the IDR_MAINFRAME window when a command is sent from the active document.
I would like to application to deactivate the active child window and then show the File menu as if the alt-F key was pressed from the keyboard.
I have tried CMenu *pMenu=AfxGetMainWnd()->GetMenu();
but this does not display the menu at all.
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!