Commit 7ceff879 authored by Andrej Shadura's avatar Andrej Shadura Committed by Vitaly Lipatov

comctl32: Fixed rebar behaviour when there's capture and no drag

parent 4eddbb0a
......@@ -3111,7 +3111,15 @@ REBAR_MouseMove (REBAR_INFO *infoPtr, LPARAM lParam)
int yPtMove = (infoPtr->dwStyle & CCS_VERT ? ptMove.x : ptMove.y);
if (GetCapture() != infoPtr->hwndSelf)
ERR("We are dragging but haven't got capture?!?\n");
{
if (infoPtr->fStatus & BEGIN_DRAG_ISSUED)
{
REBAR_Notify_NMREBAR (infoPtr, infoPtr->iGrabbedBand, RBN_ENDDRAG);
infoPtr->fStatus &= ~BEGIN_DRAG_ISSUED;
}
infoPtr->iGrabbedBand = -1;
return 0;
}
band = REBAR_GetBand(infoPtr, infoPtr->iGrabbedBand);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment