LB Booster
General >> General Board >> Disable all MENU BAR?
http://lbb.conforums.com/index.cgi?board=general&action=display&num=1432051390

Disable all MENU BAR?
Post by SarmedNafi on May 19th, 2015, 4:03pm

Dear Sir,

How to disable all the menu bar?
Not a sub menu or a menu item but all the menu bar with all it's menus,
is it possible? Hiding all the menu bar or sub menus are not preferred. What I am looking for is disable all the menu bar. Then enable it in certain moment.

Thanks in advance,
Sarmed
Re: Disable all MENU BAR?
Post by Richard Russell on May 19th, 2015, 4:51pm

on May 19th, 2015, 4:03pm, SarmedNafi wrote:
What I am looking for is disable all the menu bar. Then enable it in certain moment.

As far as I know you cannot disable the entire menu bar in one operation. I think you must disable each menu individually, then to restore it again you must enable each menu individually.

You can do that using the GetMenu API to get the handle and then the EnableMenuItem API to disable or enable the individual menus.

A search of the LB Community Forum should find some code.

Richard.