关于listcontrol 多选的方法(源之于网络):
int count = m_DataList.GetSelectedCount();
if (count<1)
return;
int *pITM = new int [count];
int i=0;
POSITION pos = m_DataList.GetFirstSelectedItemPosition();
while (pos)
{
int iItm = m_DataList.GetNextSelectedItem(pos);
pITM[i++] = iItm;
}
for (i=count-1;i>-1;i--)
{
m_DataList.DeleteItem(pITM[i]);
}
delete []pITM;