VC 窗口出现白屏闪烁的解决办法

处理一下窗口的WM_ERASEBKGND消息即可。

在messagemap里添加ON_WM_ERASEBKGND()

在窗口头文件里添加 afx_msg BOOL OnEraseBkgnd(CDC* pDC);

在窗口类里实现消息处理——简单返回true就可以了。

BOOL BmpDialog::OnEraseBkgnd(CDC* pDC)
{
// TODO: Add your control notification handler code here
return true;
}

就这么简单!

http://blog.csdn.net/chence19871/article/details/47131849

原文地址:https://www.cnblogs.com/findumars/p/5636486.html