如何在VC ++ MFC中的控件中显示多个数据 [英] How could I display multiple data in controls in VC++ MFC

查看:315
本文介绍了如何在VC ++ MFC中的控件中显示多个数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,在该应用程序中有一些数据来自一个硬件接口,之后我必须在MFC的某些控件中显示该数据我该如何实现它请帮助

谢谢提前

I have an application,in that application some amount data come from one hardware interface and after that I have to display that data in some control of MFC how can I implement it Please help
Thanks in advance

推荐答案

什么样的数据?表示或多或少总是取决于数据。



是文本/数值吗?你需要绘制它们的某种数值数据吗?



您可以使用CListBox或CListCtrl以列表或表格形式显示数据(或者如果需要spreadshet类型控件,则查找( MFC网格控件2.27 [ ^ ])



您可以使用CTreelCtrl进行分层数据



如果现有控件都不适合您,您可以查找第三方UI控件。



如果没有第三方控制为您服务,您将必须根据您的要求和规格自行设计和编码。



大多数控件都是从CWnd派生类开始的。



祝你好运。
What kind of data ? The representation is more or less always dependent of the data.

Is it text/numerical values ? is it some kind of numerical data that you need to graph them ?

you can use a CListBox or a CListCtrl to display data in a list or tabular fashion (or if needing a "spreadshet" type control, look for (MFC Grid control 2.27[^] )

you can use a CTreelCtrl for hierarchical data

If none of the existing controls suit you, you can look for a 3rd party UI control.

If no 3rd party control work for you, you will have to design and code it yourself based on your requirements and specifications.

Most controls start from a CWnd derived class.

Good luck.


这篇关于如何在VC ++ MFC中的控件中显示多个数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆