comctl32/header: Reset internal drag state on mouse up.
This commit is contained in:
parent
1016bd7ec4
commit
4ba9e61661
|
@ -1663,7 +1663,8 @@ HEADER_LButtonUp (HWND hwnd, LPARAM lParam)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
InvalidateRect(hwnd, &infoPtr->items[infoPtr->iMoveItem].rect, FALSE);
|
InvalidateRect(hwnd, &infoPtr->items[infoPtr->iMoveItem].rect, FALSE);
|
||||||
|
|
||||||
|
infoPtr->bDragging = FALSE;
|
||||||
HEADER_SetHotDivider(hwnd, FALSE, -1);
|
HEADER_SetHotDivider(hwnd, FALSE, -1);
|
||||||
}
|
}
|
||||||
else if (!(dwStyle&HDS_DRAGDROP) || !HEADER_IsDragDistance(infoPtr, &pt))
|
else if (!(dwStyle&HDS_DRAGDROP) || !HEADER_IsDragDistance(infoPtr, &pt))
|
||||||
|
|
Loading…
Reference in New Issue