Disable a window menu?
Posted: Mon Jul 12, 2004 1:32 am
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.
http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
EnableMenuItem_(GetMenu_(WindowID()),0,#MF_BYPOSITION | #MF_GRAYED)
DrawMenuBar_(WindowID())