I have a CListCtrl (report style) where I clear the list and repopulate it at certain times. I\'d like to maintain the vertical scroll position when doing this. I see ther
Another way to do it is like so:
CRect r; m_lcList.GetItemRect(0, r, LVIR_BOUNDS); int scrollPos = m_lcList.GetTopIndex() * r.Height(); RenewContents(); m_lcList.Scroll(CSize(0, scrollPos));