Commit b63c1cb2 authored by Owen Rudge's avatar Owen Rudge Committed by Alexandre Julliard

comctl32: Capture the mouse when performing a listview marquee selection.

parent 27a44a5d
......@@ -3731,7 +3731,10 @@ static LRESULT LISTVIEW_MouseMove(LISTVIEW_INFO *infoPtr, WORD fwKeys, INT x, IN
/* If we're allowing multiple selections, send notification.
If return value is non-zero, cancel. */
if (!(infoPtr->dwStyle & LVS_SINGLESEL) && (notify_hdr(infoPtr, LVN_MARQUEEBEGIN, &hdr) == 0))
{
infoPtr->bMarqueeSelect = TRUE;
SetCapture(infoPtr->hwndSelf);
}
}
else
{
......@@ -9533,9 +9536,12 @@ static LRESULT LISTVIEW_LButtonUp(LISTVIEW_INFO *infoPtr, WORD wKey, INT x, INT
if (infoPtr->bDragging || infoPtr->bMarqueeSelect)
{
/* Remove the marquee rectangle */
/* Remove the marquee rectangle and release our mouse capture */
if (infoPtr->bMarqueeSelect)
{
LISTVIEW_InvalidateRect(infoPtr, &infoPtr->marqueeRect);
ReleaseCapture();
}
SetRect(&infoPtr->marqueeRect, 0, 0, 0, 0);
......
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