MFC-CListCtrl-InsertItem插入一行(一项)

天子骄龙 / 2023-04-29 / 原文

 

方式一

    int i1=mylist4.InsertItem(0, _T("李明")); //插入一行(一项)
    /*
    参数1:int nItem  行的索引
    参数2:LPCTSTR lpszItem  控件头的名字
    返回值:行号
    四种风格都可以
    */