From 9badfb50cf38e930372d721450581f4597af86c2 Mon Sep 17 00:00:00 2001 From: Felix Nawothnig Date: Wed, 28 Feb 2007 18:07:17 +0100 Subject: [PATCH] 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 deletion(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index e9476ea3d11..f5904379a35 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 4ec1d1d9ac7..17d50dc0a6e 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);