添加对消息: LVN_COLUMNCLICK 的处理函数: NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;
char svText[512]; // TODO: Add your control notification handler code here
LV_COLUMN lvc;
lvc.mask=LVCF_SUBITEM | LVCF_TEXT;
lvc.pszText=svText;
lvc.cchTextMax=512;
m_pListCtrl->GetColumn(pNMListView->iSubItem, &lvc); AfxMessageBox(lvc.pszText);
*pResult = 0;