Hi everyone,

I wonder if it is possible to disable (graying) a popup in a menu or even the entire menu. Graying MenuItems seems a peace of cake but graying popups....AAAAAAAAARGHHH !

Please can someone help me, I 'm stuck....


PS: Thanx to all the kind people who share their knowledge and experience on this board. I learned a lot here!!
Thankx !!
Posted on 2003-12-10 16:01:37 by lovesong
Hi. :)
It should be possible, perhaps there's a problem somewhere else?

EDIT: You could try using a MENUEX resource, to assign an ID to your popup. That should make things easier.
Posted on 2003-12-10 16:16:11 by QvasiModo
if you are taking about a submenu in a menu (popup in a menu) you disable it by position, for example to disable the menu on the second position of the first menu in the menu bar:

invoke GetMenu,hWin
invoke GetSubMenu,eax,0
invoke EnableMenuItem,eax,1,MF_DISABLED or MF_BYPOSITION

The sub menu will no longer open. To disable a top level menu just skip the GetSubMenu part.
Posted on 2003-12-10 16:19:45 by donkey