Felix Nawothnig : comctl32:
Update header window in listview WM_PAINT handler.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Feb 28 14:40:10 CST 2007
Module: wine
Branch: master
Commit: 9badfb50cf38e930372d721450581f4597af86c2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9badfb50cf38e930372d721450581f4597af86c2
Author: Felix Nawothnig <flexo at holycrap.org>
Date: Wed Feb 28 18:07:17 2007 +0100
comctl32: Update header window in listview WM_PAINT handler.
---
dlls/comctl32/listview.c | 3 +++
dlls/comctl32/tests/listview.c | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index e9476ea..f590437 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -8798,6 +8798,9 @@ static LRESULT LISTVIEW_Paint(LISTVIEW_INFO *infoPtr, HDC hdc)
LISTVIEW_Arrange(infoPtr, LVA_DEFAULT);
LISTVIEW_UpdateScroll(infoPtr);
}
+
+ UpdateWindow(infoPtr->hwndHeader);
+
if (hdc)
LISTVIEW_Refresh(infoPtr, hdc);
else
diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index 4ec1d1d..17d50dc 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -573,7 +573,7 @@ static void test_redraw(void)
trace("invalidate & update\n");
InvalidateRect(hwnd, NULL, TRUE);
UpdateWindow(hwnd);
- ok_sequence(sequences, LISTVIEW_SEQ_INDEX, redraw_listview_seq, "redraw listview", TRUE);
+ ok_sequence(sequences, LISTVIEW_SEQ_INDEX, redraw_listview_seq, "redraw listview", FALSE);
flush_sequences(sequences, NUM_MSG_SEQUENCES);
More information about the wine-cvs
mailing list