Hi,
I have a regular MFC app which I created through the AppWiz.
I don't want to have the menu. How can I do it ?
Any input will be appreciated.
-Thanks!
Printable View
Hi,
I have a regular MFC app which I created through the AppWiz.
I don't want to have the menu. How can I do it ?
Any input will be appreciated.
-Thanks!
in the InitInstance method of your "theApp" class, there should be a call to ::LoadMenu. just delete that call and no menu will be loaded.
--michael
Mike, I don't see any call to LoadMenu() in initinstance().
sorry, if you have a Doc/View kinda app, the the DocTemplate creates the menu for you. In this case, you can just call
SetMenu (NULL);
to get rid of it (If you have the standard initinstance created by the APWiz, you would just call pMainFrame->SetMenu (NULL); at the end of the method)
--michael
Mike,
Thanks a lot it worked!!