|
-
May 27th, 1999, 11:26 AM
#1
How not to have a menu in a regular MFC app ?
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!
-
May 27th, 1999, 11:32 AM
#2
Re: How not to have a menu in a regular MFC app ?
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
-
May 27th, 1999, 11:39 AM
#3
Re: How not to have a menu in a regular MFC app ?
Mike, I don't see any call to LoadMenu() in initinstance().
-
May 27th, 1999, 11:52 AM
#4
Re: How not to have a menu in a regular MFC app ?
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
-
May 27th, 1999, 05:01 PM
#5
Re: How not to have a menu in a regular MFC app ?
Mike,
Thanks a lot it worked!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|