mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
Fix SetItem so that items don't get wrongly re-ordered.
This commit is contained in:
parent
1e33acaa43
commit
7462a8f53f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user