[2/2] comctl32/header: Always update rectangles after HDM_SETORDERARRAY
Nikolay Sivov
bunglehead at gmail.com
Thu Jul 9 16:14:30 CDT 2009
>From d943ec621a935b0a827959a967a872d07fb46fb3 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Thu, 9 Jul 2009 23:13:28 +0400
Subject: Always update rectangles after HDM_SETORDERARRAY
---
dlls/comctl32/header.c | 2 +-
dlls/comctl32/tests/header.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c
index ddc9cb0..aa68102 100644
--- a/dlls/comctl32/header.c
+++ b/dlls/comctl32/header.c
@@ -1210,7 +1210,7 @@ HEADER_SetOrderArray(HEADER_INFO *infoPtr, INT size, const INT *order)
lpItem = &infoPtr->items[*order++];
lpItem->iOrder=i;
}
- infoPtr->bRectsValid=0;
+ HEADER_SetItemBounds(infoPtr);
InvalidateRect(infoPtr->hwndSelf, NULL, FALSE);
return TRUE;
}
diff --git a/dlls/comctl32/tests/header.c b/dlls/comctl32/tests/header.c
index 3268ccc..e357f9d 100644
--- a/dlls/comctl32/tests/header.c
+++ b/dlls/comctl32/tests/header.c
@@ -1175,7 +1175,7 @@ static void test_hdm_index_messages(HWND hParent)
rect.left = 0;
retVal = SendMessage(hChild, HDM_GETITEMRECT, 0, (LPARAM) &rect);
expect(TRUE, retVal);
- todo_wine ok(rect.left != 0, "Expected updated rectangle\n");
+ ok(rect.left != 0, "Expected updated rectangle\n");
flush_sequences(sequences, NUM_MSG_SEQUENCES);
--
1.5.6.5
More information about the wine-patches
mailing list