如何在VC ++中创建图形? [英] How to create a graph in VC++?
本文介绍了如何在VC ++中创建图形?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Visual C ++中创建一个实时图形,该图形每2分钟更新一次?
How do I create a live graph in Visual C++ which will be updated every 2 minutes?
推荐答案
您可以使用例如GDI创建图形绘制图元.关于建议的更新部分",您可以按照建议使用计时器.
:)
You may create the graph using, for instance, the GDI drawing primitives.
As regards the ''update part'' you may, as suggested, use a timer.
:)
或者...您可以看一下在CodeProject上有很多文章!
示例:
高速图表控制 [ ^ ]
更多:
http://www.codeproject.com/KB/miscctrl/index .aspx?#Miscellaneous%20-%20Charting%20Controls [ ^ ]
祝你好运,
Iain.
Or... you could look at the many articles here on CodeProject!
Example:
High-speed Charting Control[^]
More:
http://www.codeproject.com/KB/miscctrl/index.aspx?#Miscellaneous%20-%20Charting%20Controls[^]
Good luck,
Iain.
您可以致电图形刷新
从单独的线程或从CYourGraphWnd::OnTimer(..)
:)
You could call the graphs refreshing
from a separate thread or from theCYourGraphWnd::OnTimer(..)
:)
这篇关于如何在VC ++中创建图形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文