comctl32/header: Always update rectangles after HDM_SETORDERARRAY.

oldstable
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->iOrder=i;
}
infoPtr->bRectsValid=0;
HEADER_SetItemBounds(infoPtr);
InvalidateRect(infoPtr->hwndSelf, NULL, FALSE);
return TRUE;
}

View File

@ -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);