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

comctl32: Cancel marquee selection if we lose focus in listview.

parent 038e36ad
......@@ -9453,7 +9453,19 @@ static LRESULT LISTVIEW_KillFocus(LISTVIEW_INFO *infoPtr)
/* if we have a focus rectangle, get rid of it */
LISTVIEW_ShowFocusRect(infoPtr, FALSE);
/* if have a marquee selection, stop it */
if (infoPtr->bMarqueeSelect)
{
/* Remove the marquee rectangle and release our mouse capture */
LISTVIEW_InvalidateRect(infoPtr, &infoPtr->marqueeRect);
ReleaseCapture();
SetRect(&infoPtr->marqueeRect, 0, 0, 0, 0);
infoPtr->bMarqueeSelect = FALSE;
}
/* set window focus flag */
infoPtr->bFocus = FALSE;
......
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