主题:如何在CListCtr中实现多行显示
本人是初学者,很多地方不懂
lvi.mask = LVIF_TEXT | LVIF_IMAGE | LVIF_PARAM;
nNumofCount = m_lstBook.GetItemCount();
lvi.iItem = nNumofCount;
lvi.iSubItem = 0;
lvi.pszText = m_BorrowInfo.m_strBookName.GetBuffer(0) ;
m_lstBook.InsertItem(&lvi);
m_strTime = m_BorrowInfo.m_strBookName;
m_lstBook.SetItemText(nNumofCount,0, m_strTime);
m_lstBook.SetItemText(nNumofCount,1, m_strTime);
m_lstBook.SetItemText(nNumofCount,2, m_strTime);
以上是我的程序,在CListCtrl中只能显示一行,如果我想让他多行显示应该怎么办?求高手帮忙指点下
lvi.mask = LVIF_TEXT | LVIF_IMAGE | LVIF_PARAM;
nNumofCount = m_lstBook.GetItemCount();
lvi.iItem = nNumofCount;
lvi.iSubItem = 0;
lvi.pszText = m_BorrowInfo.m_strBookName.GetBuffer(0) ;
m_lstBook.InsertItem(&lvi);
m_strTime = m_BorrowInfo.m_strBookName;
m_lstBook.SetItemText(nNumofCount,0, m_strTime);
m_lstBook.SetItemText(nNumofCount,1, m_strTime);
m_lstBook.SetItemText(nNumofCount,2, m_strTime);
以上是我的程序,在CListCtrl中只能显示一行,如果我想让他多行显示应该怎么办?求高手帮忙指点下