I create a new class inheriting from CNiGraph class, and add codes which display a popup menu when OnRButtonDown event occurs in the new class. However, all menu items are grayed and cannot be changed using MF_ENABLED flag.
If I create a new class inheriting from CButton class and repeat the same process, the menu is enabled. Or if I directly respond to OnRButtonDown event of CNiGraph class, everything is ok as well.
So, how to inherit a class in Measurement Studio?