默认树控件一次只能选择一个
怎么才能让它可以用ctrl或者shit键选择多个vc的左边的类列表就可以多选

解决方案 »

  1.   

    也许把LVS_SINGLESEL解析掉就可以了吧
      

  2.   

    http://www.china-askpro.com/msg10/qa43.shtml
    http://www.vckbase.com/document/viewdoc.asp?id=665
      

  3.   

    建议你到这里下载一个可以多选的类,
    http://www.techsoft.no/bendik/
    然后使用他的函数可以得到多选的指针:
    HTREEITEM hItem = m_TreeTrsRecords.GetFirstSelectedItem();

    while (NULL!=hItem)
    {
                      ......
                      ......
    hItem = m_TreeTrsRecords.GetNextSelectedItem(hItem);
    }//end of while.