mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
comctl32: Capture the mouse when performing a listview marquee selection.
This commit is contained in:
parent
27a44a5d63
commit
b63c1cb219
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user