Quantcast
Viewing all articles
Browse latest Browse all 12583

Desktop Composition Causes MFC Window To Freeze Or Not Being Painted

Hello,

We have a Windows application, that is written mostly in MFC.  It has a display issue starting from Windows vista/7.  The appliction can launch multiple, standalone, MVC type of windows.  Some clients report that randomly, one of these windows would appear frozen, or not updating or not being repainted.

Minimize and then restore the window will correct the problem.

This only happens if "desktop composition" is turned on.  As soon as we tell customers to disable that, the problem goes away.

When this happens, calls such as CDC::LineTo, CDC::TextOut will return true (no error), but no line or text is seen/reflected on the screen.

This appears to be a bug in the Desktop Composition or DWM.  Did anyone else have this problem before and can anyone offer some help?

Thank you very much.

 

TJ


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>