Fix SetItem so that items don't get wrongly re-ordered.

This commit is contained in:
Maxime Bellengé 2005-02-21 18:34:17 +00:00 committed by Alexandre Julliard
parent 1e33acaa43
commit 7462a8f53f

View File

@ -1203,10 +1203,8 @@ HEADER_SetItemA (HWND hwnd, WPARAM wParam, LPARAM lParam)
{
lpItem->iOrder = phdi->iOrder;
}
else
lpItem->iOrder = nItem;
HEADER_SendHeaderNotify (hwnd, HDN_ITEMCHANGEDA, nItem, phdi->mask);
HEADER_SendHeaderNotify (hwnd, HDN_ITEMCHANGEDA, nItem, phdi->mask);
HEADER_SetItemBounds (hwnd);
@ -1270,10 +1268,8 @@ HEADER_SetItemW (HWND hwnd, WPARAM wParam, LPARAM lParam)
{
lpItem->iOrder = phdi->iOrder;
}
else
lpItem->iOrder = nItem;
HEADER_SendHeaderNotify(hwnd, HDN_ITEMCHANGEDW, nItem, phdi->mask);
HEADER_SendHeaderNotify(hwnd, HDN_ITEMCHANGEDW, nItem, phdi->mask);
HEADER_SetItemBounds (hwnd);