CListCtrl控件的问题
for(int nListEntry=0;!m_setComplete.IsEOF();nListEntry++)
{
m_lcRepeaterList.InsertItem(nListEntry,LPCTSTR(itoa(m_setComplete.m_iId,szBuffer,10)),0);
m_lcRepeaterList.SetItemText(nListEntry,1,LPCTSTR(m_setComplete.m_strFrequency));
m_lcRepeaterList.SetItemText(nListEntry,2,LPCTSTR(m_setComplete.m_strCallsign));
m_lcRepeaterList.SetItemText(nListEntry,3,LPCTSTR(m_setComplete.m_strInput));
m_lcRepeaterList.SetItemText(nListEntry,4,LPCTSTR(m_setComplete.m_strCity));
m_lcRepeaterList.SetItemText(nListEntry,5,LPCTSTR(m_setComplete.m_strState));
m_setComplete.MoveNext();
}
为何我的CListCtrl 控件中只显示InsertItem那一行???SetItemText 都不显示??
BOOL SetItemText( int nItem, int nSubItem, LPTSTR lpszText );nItem
Index of the item whose text is to be set.//item 指的是哪个东西??
nSubItem
Index of the subitem, or zero to set the item label.//subitem指的是???
lpszText
Pointer to a string that contains the new item text.
请高手指点!!!!!!!!