
Removing main menu from MFC SDI app
Quote:
>How can I remove the standard main menu from my MFC-SDI
>App?
Try this code in InitInstance:
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
/* Remove the menu */
m_pMainWnd->SetMenu( NULL );
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return TRUE;
Quote:
}
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq