设置:
 ModifyStyle(0, LVS_SMALLICON | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_AUTOARRANGE);
 SetImageList(&m_imagelist, LVSIL_SMALL);插入数据:
 CListCtrl::InsertItem(0, name);最新插入的数据都放在最后了,我需要放在最前修改成LVS_REPORT,则会放在前面

解决方案 »

  1.   

    用一个
    for(int i;i<num;i++)
    {
    InsertItem(i, name);
    }
      

  2.   

    直接插在0位置就可以了  InsertItem(0,....)
      

  3.   


    在REPORT模式下是对的,但在图标模式下不对,你试下
      

  4.   

    先获取当前有几条记录 然后插入:int nItem = GetCount();
    InsertItem(nItem , name);
      

  5.   

    m_list.InsertItem(0, text)这样就会每次都插在最前面了
      

  6.   


    int nItem = GetItemCount();
    InsertItem(nItem , name);