Jump to content
  • Advertisement
Sign in to follow this  
akira32

unselect a row in list control(MFC)

This topic is 3448 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!