title: CListCtrl: How to maintain scroll position?
body: <p>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 there are a couple methods that look promising:</p>
  
  <pre><code>EnsureVisible()
  GetScrollPos()
  SetScrollPos()
  GetScrollInfo()
  GetTopIndex()
  Scroll()
  </code></pre>
  
  <p>I'm trying GetScrollPos() and then SetScrollPos() but it doesn't appear to be working.  What is the simple correct way to save a scroll position and then later restore it?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Actually it seems I can get to save the scroll position GetScrollPos() and then SetScrollPos() to restore it, however it literally just seems to set the scroll bar position and does not actually scroll the items of my CListCtrl.</p>
  
  <p><strong>UPDATE 2</strong></p>
  
  <p>The Scroll() method seems to correctly scroll the scrollbars <em>and</em> the contents.  However it takes a CSize object as it's argument.  So the question would be how to translate between the CSize and the output of either GetTopIndex or GetScrollInfo/Pos.</p>