如何将项目插入CListCtrl对象? [英] How to insert items to CListCtrl object?

查看:71
本文介绍了如何将项目插入CListCtrl对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是MFC的新手,我正面临着这个问题。我有CList对象,我想将项目插入CListCtrl(报表样式)对象。我在我的申请中写了以下几行代码。



CList< cstring,> mUserInput;



mUserInput.AddHead(CString(_T(Date))); // mUserInput中的数据







现在我想将CList数据插入CListCtrl对象。



CListCtrl m_ListControl;



请帮帮我。提前谢谢!

I am new to MFC and I am facing this problem. I have CList object and i want to insert items into CListCtrl(Report Style) object. The following lines of code i have written in my application.

CList<cstring,> mUserInput;

mUserInput.AddHead(CString(_T("Date"))); //the data in mUserInput
.
.
.
Now i want to insert CList data into CListCtrl object.

CListCtrl m_ListControl;

Please help me. Thank you in advance!

推荐答案

请参阅 https ://msdn.microsoft.com/en-us/library/hfshke78.aspx [ ^ ]。


这篇关于如何将项目插入CListCtrl对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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