1

解决方案 »

  1.   

    int GetLBText( int nIndex, LPTSTR lpszText ) const;void GetLBText( int nIndex, CString& rString ) const;
      

  2.   

    CListCtrl::GetColumn
    BOOL GetColumn( int nCol, LVCOLUMN* pColumn ) const;
    这个函数可以获得指定了的列头信息
    typedef struct tagLVCOLUMNA
    {
        UINT mask;
        int fmt;
        int cx;
        LPSTR pszText;
        int cchTextMax;
        int iSubItem;
    #if (_WIN32_IE >= 0x0300)
        int iImage;
        int iOrder;
    #endif
    } LVCOLUMNA, FAR* LPLVCOLUMNA;
    其中的pszText应该就是列名字了。