This sample shows how to enable/disable menu items dynamically

It implements

What is important to understand is that the objects are not aware of which MenuItems will send them commands. This offer a lot of flexibility. The information flow is not from objects to MenuItems, but in the opposite way.

More information is contained in the headers.

about 8 kb