如题

解决方案 »

  1.   

    1,用CLISTCTR控件
    2,删除列(MSDN例子)int nCount = m_myListCtrl.GetItemCount();// Delete all of the items from the list view control.
    for (int i=0; i < nCount; i++)
    {
       m_myListCtrl.DeleteItem(0);
    }
      

  2.   

    用CListCtrl控件
    CListCtrl *pListCtl = &GetListCtrl();//在CListView的子类中
    //插入列
    pListCtl->InsertColumn(0,"aaaaaaaa",LVCFMT_LEFT,100);
    pListCtl->InsertColumn(1,"bbbbbbbb",LVCFMT_LEFT,150);
    //删除列
    pListCtl->DeleteColumn(0);