unselect a row in list control(MFC)
How to unselect a row in list control by using the code to control?
How to write the code to unselect a row in list control?
Didn't you already get an answer for this at CodeProject?
http://secure.codeproject.com/script/Forums/View.aspx?fid=1647&select=2847662&fr=23#xx2847662xx
int nSel = m_ListCtrl.GetNextItem(-1, LVNI_SELECTED);
if (nSel != -1)
m_ListCtrl.SetItemState(nSel, 0, LVIS_SELECTED);
http://secure.codeproject.com/script/Forums/View.aspx?fid=1647&select=2847662&fr=23#xx2847662xx
int nSel = m_ListCtrl.GetNextItem(-1, LVNI_SELECTED);
if (nSel != -1)
m_ListCtrl.SetItemState(nSel, 0, LVIS_SELECTED);
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement