Nikolay Sivov : comctl32/header: Always update rectangles after HDM_SETORDERARRAY.
Alexandre Julliard
julliard at winehq.org
Fri Jul 10 08:52:02 CDT 2009
Module: wine
Branch: master
Commit: a18886e5c21254aca1cb75d8005bbb88c4c3a86c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a18886e5c21254aca1cb75d8005bbb88c4c3a86c
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Thu Jul 9 23:13:28 2009 +0400
comctl32/header: 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);
More information about the wine-cvs
mailing list