Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Inheritance from CNiGraph class

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?
0 Kudos
Message 1 of 1
(3,391 Views)