Solved

Windows API call to remove/hide the main menu bar

Posted on 2006-10-26
1
459 Views
Last Modified: 2013-12-03
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
Comment
Question by:purplesoup
1 Comment
 
LVL 48

Accepted Solution

by:
AlexFM earned 500 total points
ID: 17811091
SetMenu(hWnd, hMenu) - sets menu for the window.
SetMenu(hWnd, NULL) - removes menu.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question