Windows API call to remove/hide the main menu bar

I need to hide or remove the menu bar from an application.

Does anyone have the windows API call to do this? I know changing the window type - for example to a child window - can sometimes do this, but I don't want to change the nature of the window, just hide or remove the menu bar.
purplesoupAsked:
Who is Participating?
 
AlexFMCommented:
SetMenu(hWnd, hMenu) - sets menu for the window.
SetMenu(hWnd, NULL) - removes menu.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.