Page 1 of 1

Disable a window menu?

Posted: Mon Jul 12, 2004 1:32 am
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.

Posted: Mon Jul 12, 2004 1:54 am
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.

Posted: Mon Jul 12, 2004 2:45 am
by halo
Perfect!