VC获取CListCtrl的LVITEM

char szBufItem[SIZE_DIRECSOURCE_NAME];
		LVITEM lvItem={0};
		lvItem.mask = LVIF_IMAGE |LVIF_TEXT |LVIF_STATE |LVIF_PARAM;
		lvItem.iItem= nIndex;  //指定哪一行
		lvItem.iSubItem = 0;
		lvItem.pszText = szBufItem;
		lvItem.cchTextMax = SIZE_DIRECSOURCE_NAME - 1;
		m_listSource.GetItem(&lvItem);
		UINT nIndexState = m_listSource.GetItemState(nIndex,LVIS_SELECTED);

你可能感兴趣的:(VC获取CListCtrl的LVITEM)