title: Disabling desktop composition causes flickering on Tab Control
body: <p>When i disable desktop composition i get flickering/blinking whenever i hover the mouse over the tabs. This only happens when desktop composition is disabled. I have tried to cancel WM_ERASEBKGND message but it doesn't fix the problem. What is the solution to this problem?</p>
  
  <p>This is the example that i tried to use for MASM tab control.</p>
  
  <p><a href="http://www.dreamincode.net/forums/index.php?app=core&amp;module=attach&amp;section=attach&amp;attach_id=28600" rel="nofollow noreferrer">http://www.dreamincode.net/forums/index.php?app=core&amp;module=attach&amp;section=attach&amp;attach_id=28600</a></p>
  
  <p>The bin is already compiled. </p>
  
  <p>EDIT: After enabling the <strong>WS_EX_COMPOSITED</strong> flag and added a listview control the frames of listview is not drawn. This only happens if ListView type is set to report. </p>
  
  <p>Pic about the issue:
  <a href="https://i.stack.imgur.com/gRsI8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gRsI8.png" alt="enter image description here"></a></p>
  
  <p>Changing Listview type to other than Report and frames are drawn
  <a href="https://i.stack.imgur.com/CfJq0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CfJq0.png" alt="enter image description here"></a></p>
  
  <p>Removing <strong>WS_EX_COMPOSITED</strong> flag fixes the issue but the flickering comes back
  <a href="https://i.stack.imgur.com/3NSgp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3NSgp.png" alt="enter image description here"></a></p>