C++ Programming
03-28-2009, 05:12 PM
Hi all,
I have a report view type ListCtrl.here i m inserted number of items.
i m created a button remove to remove list items.
i m select multiple items from list than click on remove button.
than all selected ites are not delete.
i m using this::
for (int n=0;n < m_List.GetItemCount();n++)
{
if(m_List.GetItemState(n, LVIS_SELECTED) == LVIS_SELECTED)
{
m_List.DeleteItem(n);
}
}
please help me for this thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
I have a report view type ListCtrl.here i m inserted number of items.
i m created a button remove to remove list items.
i m select multiple items from list than click on remove button.
than all selected ites are not delete.
i m using this::
for (int n=0;n < m_List.GetItemCount();n++)
{
if(m_List.GetItemState(n, LVIS_SELECTED) == LVIS_SELECTED)
{
m_List.DeleteItem(n);
}
}
please help me for this thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.