Win32中RedrawWindow和UpdateWindow之间的区别是什么? [英] What are the differences between RedrawWindow and UpdateWindow in Win32?

查看:965
本文介绍了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?

推荐答案

RedrawWindow 通常用于强制重绘整个窗口指定区域内)。

RedrawWindow is typically used to force a redraw of the entire window (or some specified region within) right now.

UpdateWindow 将强制仅重新绘制窗口的更新区域,即自上次绘画循环以来已失效的窗口部分(例如通过调用 InvalidateRect )。

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 calling InvalidateRect) since the last paint cycle.

这篇关于Win32中RedrawWindow和UpdateWindow之间的区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆