各位高手急问一个CListBox的问题,不是CListCtrl的。急!!!!
CListBox中有多行信息,用鼠标选中一行。用一个button单击删除所选的那条信息。
在此键中应加什么函数,我用了FindStringExact // The pointer to my list box.
extern LPCTSTR lpszmyString;/////此行是添加在button键中马???
// Delete all items that exactly match the specified string.
int nIndex = 0;
while ((nIndex=m_listbox.FindStringExact(nIndex, lpszmyString)) != LB_ERR)
{
m_listbox.DeleteString( nIndex );
}
大家有什么好办法快教我