Win32中RedrawWindow和UpdateWindow有什么区别?
Win32中RedrawWindow和UpdateWindow有什么区别?
既然它们似乎有相同的目的来刷新窗口,那么有什么区别呢?
What are the differences between RedrawWindow and UpdateWindow in Win32?
Since they seem to have the same purpose to refresh a window, what are the differences?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
RedrawWindow
通常用于立即强制重绘整个窗口(或其中的某些指定区域)。UpdateWindow
将强制仅重绘窗口的更新区域,即自上次绘制周期以来已失效的窗口部分(例如,通过调用InvalidateRect
)。RedrawWindow
is typically used to force a redraw of the entire window (or some specified region within) right now.UpdateWindow
will force a redraw of only the update region of the window, i.e. that part of the window that has been invalidated (e.g. by callingInvalidateRect
) since the last paint cycle.