Click to See Complete Forum and Search --> : How not to have a menu in a regular MFC app ?
SSP
May 27th, 1999, 11:26 AM
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!
chiuyan
May 27th, 1999, 11:32 AM
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
SSP
May 27th, 1999, 11:39 AM
Mike, I don't see any call to LoadMenu() in initinstance().
chiuyan
May 27th, 1999, 11:52 AM
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
SSP
May 27th, 1999, 05:01 PM
Mike,
Thanks a lot it worked!!
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.