title: How do I prevent flickering on CListCtrl?
body: <p>I'm using a CListCtrl/CListView report view (<code>LVS_REPORT</code>) in virtual mode (<code>LVS_OWNERDATA</code>) with <code>LVS_EX_DOUBLEBUFFER</code> enabled and I encounter ugly flickering. Double buffer have a real effect but it doesn't stop all flickering (without it very slow).</p>
  
  <p>I'm not looking for switching to other controls that would require a high amount of rework (like ObjectListView)</p>
  
  <p>How does the flickering behaves:</p>
  
  <ul>
  <li>on column resize - the background is first clean using lightgray and after this is displayed the text (background is white)</li>
  <li>on mouse scroll (animated) - for a very short time there is lightgray-bar displayed in the area where new lines are to be displayed.</li>
  </ul>
  
  <p>It looks like it does clean the background using the default window background color (lightgray) for the area where it has to redraw.</p>
  
  <p>How do I solve the flickering problem?</p>