怎么我默认是加在首行啊,我要加在末行的

解决方案 »

  1.   

    CListBox::AddString 
    ResCall this member function to add a string to a list box. If the list box was not created with the LBS_SORT style, the string is added to the end of the list. Otherwise, the string is inserted into the list, and the list is sorted. If the list box was created with the LBS_SORT style but not the LBS_HASSTRINGS style, the framework sorts the list by one or more calls to the CompareItem member function.  
      

  2.   

    addstring就是加在末尾
    另外注意楼上所说的sort