Archived

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

Need some help with MFC app...

This topic is 5404 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
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