I have a tree object that, when an item in the tree is selected, I enable menu item and disable other menu items. The menu items start of disabled. When a tree item is selected, the item I want enabled is enabled and the other item is left disabled. However, as soon as I select another tree item, one menu item is supposed to be disabled while the other is enabled. The enabling works but disabling an item doesn't work so that all items are enabled.
Attached is a demo program that can be used to demonstrate the failure. Select on of the children in the tree. As a result, one item in the menu will be enabled. If you select the other child in the tree, the menu item that was enabled is supposed to be disabled and it is not disabled.