MFC Menu

Hiding the Default Menu

By default, the initial view contains a menu, like this:

the view with a menu

To hide this menu, just follow these steps:

  1. 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.

the view without a menu