mlstLevel.InsertColumn(0,"级别",LVCFMT_RIGHT,40)
mlstLevel.InsertColumn(1,"总计",LVCFMT_RIGHT,40)
mlstLevel.InsertColumn(2,"保留",LVCFMT_RIGHT,40)
然后添加行
SetRedraw(FALSE)
for (...)
{
InsertItem(...)
SetItemText(...)
}
SetRedraw(TRUE)
UpdateWindow()
m_list.InsertColumn(0,"序号",LVCFMT_LEFT,50)m_list.InsertColumn(1, "姓名", LVCFMT_CENTER, 50)
//添加行
int iIndex = m_list.GetItemCount()
m_list.InsertItem(iIndex,"编号")
m_list.SetItemText(iIndex,1,"姓名")
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)