Disable a window menu?

Everything else that doesn't fall into one of the other PB categories.
halo
Enthusiast
Enthusiast
Posts: 104
Joined: Mon Jan 26, 2004 2:49 am

Disable a window menu?

Post by halo »

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
Enthusiast
Posts: 252
Joined: Fri Feb 20, 2004 5:43 pm

Post by GreenGiant »

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.

Code: Select all

EnableMenuItem_(GetMenu_(WindowID()),0,#MF_BYPOSITION | #MF_GRAYED)
DrawMenuBar_(WindowID())
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.
halo
Enthusiast
Enthusiast
Posts: 104
Joined: Mon Jan 26, 2004 2:49 am

Post by halo »

Perfect!
Post Reply