Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the differences between RedrawWindow and UpdateWindow in Win32?

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?

like image 223
jondinham Avatar asked Sep 09 '11 10:09

jondinham


1 Answers

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

like image 72
David Heffernan Avatar answered Oct 15 '22 06:10

David Heffernan