NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

How to inherit 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 项奖励
1 条消息(共 4 条)
4,392 次查看
 
0 项奖励
2 条消息(共 4 条)
4,361 次查看
请问你的邮箱或msn是什么?我现在正在做这方面的东西,想与你请教一些问题。首先,为什么我从vc里拖过来的graph类叫cwgraph,而这里还有其他一些资料上都叫CNiGraph?谢谢?
0 项奖励
3 条消息(共 4 条)
4,358 次查看
Graph控件的类叫做CNiGraph,如果你在VC中拖入了一个Graph,MS会自动给这个对象起名CWGRAPH~。
 
我的邮箱是xingzhang@gmail.com。刚接触MS不久,有什么问题可以一起讨论
0 项奖励
4 条消息(共 4 条)
4,352 次查看