MFC Menu
Hiding the Default Menu
By default, the initial view contains a menu, like this:To hide this menu, just follow these steps:
- Open MainFrm.cpp and add
SetMenu(NULL);
at line 5, just like this:
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
// ...
SetMenu(NULL);
return 0;
}
After compiling and running the program, you will see the result: the view without a menu.