Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

AljosaH

Need some help with MFC app...

This topic is 5616 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''ve started out with MFC single document application (VC++ 6.0) which puts a standard menu on the top of your window by default. Is it possible to erase that menu? Simple deleting from resources doesn''t work (I get "Failed creating empty document" msg or something like that).

Share this post


Link to post
Share on other sites
Advertisement
In your CMainFrame implementation (CMainFrame.cpp) look at the PreCreateWindow function. If it''s not there, add it through the wizard. Then, after the TODO section add this line:

cs.hMenu = NULL;

That should remove the menu completely.




Always remember, you''''re unique. Just like everyone else.

Greven

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!