CListCtrl::SetColumn This method sets the attributes of a list view column.BOOL SetColumn( int nCol, const LVCOLUMN* pColumn ); LVCOLUMN lvcol; char str[256]; int nColNum; CString strColumnName; nColNum=0; lvcol.mask=LVCF_TEXT; lvcol.pszText=str;//列名 lvcol.cchTextMax=256;然后你setcolumn就可以了
This method sets the attributes of a list view column.BOOL SetColumn(
int nCol,
const LVCOLUMN* pColumn );
LVCOLUMN lvcol;
char str[256];
int nColNum;
CString strColumnName; nColNum=0;
lvcol.mask=LVCF_TEXT;
lvcol.pszText=str;//列名
lvcol.cchTextMax=256;然后你setcolumn就可以了