Disable a window menu?
Disable a window menu?
Is it possible to disable a window's whole menu, instead of going through and disabling each menu item? I still want the menu displayed, just greyed out and unresponsive.
-
GreenGiant
- Enthusiast

- Posts: 252
- Joined: Fri Feb 20, 2004 5:43 pm
I'm not sure if thats possible, but I'd say disabling each item would be easiest. All I could find was an API command that'd let you completely disable the menu.
But you said you didnt want that, so I guess you're stuck with disabling each item. Unless of course somebody smarter than me has an answer.
Code: Select all
EnableMenuItem_(GetMenu_(WindowID()),0,#MF_BYPOSITION | #MF_GRAYED)
DrawMenuBar_(WindowID())