Need some help with MFC app...

Started by
1 comment, last by AljosaH 21 years, 1 month ago
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).
LoudCloud46... tiny games developer
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
Always remember, you''re unique. Just like everyone else.Greven
Works like a charm. Thanx a lot.
LoudCloud46... tiny games developer

This topic is closed to new replies.

Advertisement