How to remove the initial menu created by the MFC Wizard
-
Go into the ResourceView for your project. Expand " resources/Menu. Depending if it is a MDI or SDI application, you may have 2 or 1 menus respectively. The IDR_MAINFRAME is the menu for the application. You can edit this menu and delete the items at the top by selecting a menu item and pressing the delete key.
-
Go into the ResourceView for your project. Expand " resources/Menu. Depending if it is a MDI or SDI application, you may have 2 or 1 menus respectively. The IDR_MAINFRAME is the menu for the application. You can edit this menu and delete the items at the top by selecting a menu item and pressing the delete key.
The problem with that is that you get the message "Cannot create empty document". Find "BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)" override in MainFrm.cpp and add the line: cs.hMenu = static_cast(NULL); just before the return statement. Rebuild and voila! Menu gone.