• Advertisement
Sign in to follow this  

unselect a row in list control(MFC)

This topic is 3320 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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);

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement