Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我有一个 MFC 应用程序,当我们执行某些操作时它会闪烁。所以我想我会SetRedraw(false)在函数结束时将其设置为 true。
SetRedraw(false)
该应用程序不再刷新,但是如果我在 while 中单击它SetRedraw(false),我的光标不会被我的应用程序捕获,它会通过它并将焦点放在下面的应用程序上。
任何人都知道我该如何解决这个问题。
CWnd::LockWindowUpdate经过一番研究,我最终改用了。它会冻结更新,但如果窗口是透明的,它不会起作用。
CWnd::LockWindowUpdate