张万松 张万年:请问大家,CListCtrl里面我有两列,要分别在第一列和第二列插入值该怎么做?
来源:百度文库 编辑:中科新闻网 时间:2024/05/05 09:41:18
我是这样用的,不过结果不对,查了一下,第一个参数并不是列的索引
m_list.InsertItem(0,str1);
m_list.InsertItem(1,str2);
后来用
m_list.SetItemText(0,0,str1);
m_list.SetItemText(0,1,str2);
结果也不对,希望大家帮忙一下
m_list.InsertItem(0,str1);
m_list.InsertItem(1,str2);
后来用
m_list.SetItemText(0,0,str1);
m_list.SetItemText(0,1,str2);
结果也不对,希望大家帮忙一下