CListControl 为什么只点击第一列才有响应
ON_NOTIFY(LVN_ITEMCHANGED, IDC_RESULT, OnClickListCtrl)
POSITION pos = m_lcResult.GetFirstSelectedItemPosition();
if (pos == NULL)
TRACE0("No items were selected!\n");
else
{
while (pos)
{
int nItem = m_lcResult.GetNextSelectedItem(pos);
CString csPos;
csPos.Format( "%d", nItem );
MessageBox( csPos );
}
}
只有点击第一列的时候才响应,如何改成无论点击哪一列都响应