怎么做多列list控件,并对其进行操作阿~ 我想做一个多列list控件,比如在其中一列显示文件名,下一列显示文件属性 ,还有怎么显示,文件名和文件属性~~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 InsertItem插入新的一行SetItemText设置某行某列的显示数据 ListCtrl,参考一下吧:http://www.yangning.com/cgi-bin/topic.cgi?forum=1&topic=101&show=0 我想点左边的CLISTCTRL中的项目,然后在右边的编辑框 中显示选中项的内容,应该用哪个message ,那些函数啊 ~~ 我这段程序错在哪里啊,怎么老是弹出"Debug Assertion Fail"啊 LPCSTR fileName = "CListCtrl.txt" ; LVITEM lvitem ; char* fileModel = "txt" ; int iPos ; lvitem.mask=LVIF_TEXT; lvitem.iItem=0; lvitem.iSubItem=0; lvitem.pszText=(char *)fileName; iPos=m_listfile.InsertItem((const struct tagLVITEMA * )&lvitem);//返回表项插入后的索引号 lvitem.mask=LVIF_TEXT; lvitem.iItem=iPos; lvitem.iSubItem=1; lvitem.pszText=fileModel; m_listfile.SetItem((const struct tagLVITEMA * )&lvitem); 关于函数名字就是函数地址? mfc 静态文本控件 数据库速度XML 继承CListCotl类后刷新的问题? 谁可以帮我看个程序,十万火急 FormView如何获取TabCtrl中ListCtrl的双击的Item? 做网页插入ACTIVE控件时,系统没有显示已有的控件 to zhang_zhibin请进,多谢你的代码 COM高手请进!90分的问题! vs.net中怎么做 ATL 程序? MSFlexGrid 问题,在线等待 ...... 要个计算器的例子,什么语言实现无所谓,当然功能强大点好。
SetItemText设置某行某列的显示数据
http://www.yangning.com/cgi-bin/topic.cgi?forum=1&topic=101&show=0
LVITEM lvitem ;
char* fileModel = "txt" ;
int iPos ;
lvitem.mask=LVIF_TEXT;
lvitem.iItem=0;
lvitem.iSubItem=0;
lvitem.pszText=(char *)fileName;
iPos=m_listfile.InsertItem((const struct tagLVITEMA * )&lvitem);//返回表项插入后的索引号
lvitem.mask=LVIF_TEXT;
lvitem.iItem=iPos;
lvitem.iSubItem=1;
lvitem.pszText=fileModel;
m_listfile.SetItem((const struct tagLVITEMA * )&lvitem);