简体   繁体   English

Win32中的RedrawWindow和UpdateWindow有什么区别?

[英]What are the differences between RedrawWindow and UpdateWindow in Win32?

What are the differences between RedrawWindow and UpdateWindow in Win32? Win32中的RedrawWindow和UpdateWindow有什么区别?

Since they seem to have the same purpose to refresh a window, what are the differences? 由于它们似乎有相同的目的刷新窗口,有什么区别?

RedrawWindow is typically used to force a redraw of the entire window (or some specified region within) right now. RedrawWindow通常用于强制重绘整个窗口(或其中的某些指定区域)。

UpdateWindow will force a redraw of only the update region of the window, ie that part of the window that has been invalidated (eg by calling InvalidateRect ) since the last paint cycle. UpdateWindow将强制仅重绘窗口的更新区域,即自上一个绘制周期以来已经失效的窗口部分(例如,通过调用InvalidateRect )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM