Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 477
  • Last Modified:

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.
0
purplesoup
Asked:
purplesoup
1 Solution
 
AlexFMCommented:
SetMenu(hWnd, hMenu) - sets menu for the window.
SetMenu(hWnd, NULL) - removes menu.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now