Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deleting CListCtrl items

Status
Not open for further replies.

BazStand

Technical User
Apr 26, 2000
2
GB
I have an application in a spreadsheet format displaying a series of CListCtrl items on each row.<br>I wish to delete a highlighted row and then save the remainder to disk.<br>I am using the following code which deletes the row in the view OK and moves all the cells below up one row. However, when I save the items to disk and then retrieve again, the deleted item reappears:-<br><br>&nbsp;&nbsp;int nSel = m_ListCtrl.GetNextItem(-1, LVNI_SELECTED);<br> if(nSel != -1)<br> &nbsp;&nbsp;&nbsp;m_ListCtrl.DeleteItem(nSel);<br><br>Can anyone advise how I can delete the row permanently.<br>Many thanks in anticipation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top