GetListCtrl().InsertColumn( i, ColumnName[i], 
           LVCFMT_LEFT, width[i], i);

解决方案 »

  1.   

    GetListCtrl().InsertColumn( i, ColumnName[i], 
               LVCFMT_LEFT, width[i], i);
    这有错吗?
      

  2.   

    GetListCtrl().InsertColumn( i, ColumnName[i], 
               LVCFMT_LEFT, width[i], i);
     修改了之后还是不成功
      

  3.   

    你可以肯定InsertColumn被执行过吗
      

  4.   

    那你可以使用
    CListCtrl m_lstData;
    m_lstData.InsertColumn( i, ColumnName[i], 
               LVCFMT_LEFT, width[i], i);
     
      

  5.   

    CListCtrl& m_lstData;
    m_lstData.InsertColumn( i, ColumnName[i], 
               LVCFMT_LEFT, width[i], i);
    与我的
    GetListCtrl().InsertColumn( i, ColumnName[i], 
               LVCFMT_LEFT, width[i], i);
    不是一样吗哦,不过我现在知道了
    其风格style cs.style |= LVS_REPORT即可
    谢谢你