RT

解决方案 »

  1.   

    可以新建的时候每加一行就有递增的参数么?就是新加一个是FILE1再加一个是FILE2那样?如果能的话怎么写?我这样写的话总是提示不能有2个参数。。
      

  2.   

    list->insertstring(list->getcount()-1, yourstring);
      

  3.   

    CStrint str;
    list->GetText(0, str);
      

  4.   

    // The pointer to my list box.
    extern CListBox* pmyListBox;// Dump all of the items in the list box.
    #ifdef _DEBUG
       CString str, str2;
       int n;
       for (int i=0;i < pmyListBox->GetCount();i++)
       {
          n = pmyListBox->GetTextLen( i );
          pmyListBox->GetText( i, str.GetBuffer(n) );
          str.ReleaseBuffer();      str2.Format(_T("item %d: %s\r\n"), i, str.GetBuffer(0));
          afxDump << str2;
       }
    #endif