Support enable/disable menu items by active right window.