if (m_list.GetSelectedCount() > 0) {

    POSITION pos=    m_list.GetFirstSelectedItemPosition();

    while (pos)
    {
        int nSelected = m_list.GetNextSelectedItem(pos); //获取选中行的索引
        m_list.DeleteItem(nSelected); //根据索引删除
        pos = m_list.GetFirstSelectedItemPosition();
    }

    }

 

相关文章:

  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
相关资源
相似解决方案