Sign in to follow this  
akira32

unselect a row in list control(MFC)

Recommended Posts

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this