Update header window in listview WM_PAINT handler

Felix Nawothnig flexo at holycrap.org
Fri Feb 9 07:42:43 CST 2007


This fixes all of the header flickering in #7344 (some flickering in the 
listview itself remains). I believe I've also seen this in other apps 
(eMule comes to my mind).

Problem occurs when the whole window is invalidated with fErase=1 (in my 
case our LVM_SETITEMCOUNT handler does that) - the header is cleared 
with white and the listview WM_PAINT takes a while to complete. During 
that time the header stays white. We could fix this in our 
LVM_SETITEMCOUNT handler but actually native also invalidates the whole 
window and relies on the UpdateWindow(hdr) on WM_PAINT...

---
  dlls/comctl32/listview.c |    3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9b67b9d97418b0066994ac80b4afd8bc677388e1.diff
Type: text/x-patch
Size: 411 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070209/603f9067/9b67b9d97418b0066994ac80b4afd8bc677388e1.bin


More information about the wine-patches mailing list