comctl32: Cancel marquee selection if we lose focus in listview.
This commit is contained in:
parent
038e36aded
commit
c1877a2d50
|
@ -9454,6 +9454,18 @@ static LRESULT LISTVIEW_KillFocus(LISTVIEW_INFO *infoPtr)
|
||||||
/* if we have a focus rectangle, get rid of it */
|
/* if we have a focus rectangle, get rid of it */
|
||||||
LISTVIEW_ShowFocusRect(infoPtr, FALSE);
|
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 */
|
/* set window focus flag */
|
||||||
infoPtr->bFocus = FALSE;
|
infoPtr->bFocus = FALSE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue