MFC app main window activation/deactivation painting issue

To reproduce this issue please follow these steps… Enable a non-Aero theme like Windows 7 Basic theme Create a new MFC application. Please make sure you’ve selected “Windows 7” for visual style and colors. Also you might notice that the issue is only reproducible when the application runs for the first time on a machine….

4