comctl32/header: Always update rectangles after HDM_SETORDERARRAY.

This commit is contained in:
Nikolay Sivov 2009-07-09 23:13:28 +04:00 committed by Alexandre Julliard
parent 67d2292b00
commit a18886e5c2
2 changed files with 2 additions and 2 deletions

View File

@ -1210,7 +1210,7 @@ HEADER_SetOrderArray(HEADER_INFO *infoPtr, INT size, const INT *order)
lpItem = &infoPtr->items[*order++]; lpItem = &infoPtr->items[*order++];
lpItem->iOrder=i; lpItem->iOrder=i;
} }
infoPtr->bRectsValid=0; HEADER_SetItemBounds(infoPtr);
InvalidateRect(infoPtr->hwndSelf, NULL, FALSE); InvalidateRect(infoPtr->hwndSelf, NULL, FALSE);
return TRUE; return TRUE;
} }

View File

@ -1175,7 +1175,7 @@ static void test_hdm_index_messages(HWND hParent)
rect.left = 0; rect.left = 0;
retVal = SendMessage(hChild, HDM_GETITEMRECT, 0, (LPARAM) &rect); retVal = SendMessage(hChild, HDM_GETITEMRECT, 0, (LPARAM) &rect);
expect(TRUE, retVal); 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); flush_sequences(sequences, NUM_MSG_SEQUENCES);