关于C#:Win32中的RedrawWindow和UpdateWindow有什么区别?

What are the differences between RedrawWindow and UpdateWindow in Win32?

Win32中RedrawWindow和UpdateWindow有什么区别?

由于它们似乎具有刷新窗口的相同目的,所以有什么区别?


RedrawWindow通常用于立即强制重新绘制整个窗口(或其中的某些指定区域)。

UpdateWindow将仅重绘窗口的更新区域,即自上一个绘制周期以来已无效(例如通过调用InvalidateRect)的窗口部分。