unselect a row in list control(MFC)

Started by
1 comment, last by akira32 15 years, 4 months ago
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?
akira32 編程之家 Yahoohttp://tw.myblog.yahoo.com/akira32-akira32
Advertisement
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);

Yes! After I post the thread, I got the answer in code project at first.
akira32 編程之家 Yahoohttp://tw.myblog.yahoo.com/akira32-akira32

This topic is closed to new replies.

Advertisement