shetlandbob
Programmer
Hia I have a menu of the following format:
Menu
Item1
item2 SubItem2.1
SubItem2.2
If you follow? subitems2.1and 2.2 are activated by item2. ok?
Anyway I know how to disable and grey out an item using the item ID e.g.
subMenu->EnableMenuItem(ID_SUBITEM21, MF_BYCOMMAND | MF_DISABLED | MF_GRAYED );
How can I disable both (or all) my sub menu items by a single command to diable (and grey out) my menu "Item2" (I cant find out how to determine the ID of this menu item)?
Rather than disabling every item in the sub menu?
Menu
Item1
item2 SubItem2.1
SubItem2.2
If you follow? subitems2.1and 2.2 are activated by item2. ok?
Anyway I know how to disable and grey out an item using the item ID e.g.
subMenu->EnableMenuItem(ID_SUBITEM21, MF_BYCOMMAND | MF_DISABLED | MF_GRAYED );
How can I disable both (or all) my sub menu items by a single command to diable (and grey out) my menu "Item2" (I cant find out how to determine the ID of this menu item)?
Rather than disabling every item in the sub menu?