From 36e9153f38af09abe4e527fb9b62d5aa4c1201c9 Mon Sep 17 00:00:00 2001 From: Owen Rudge Date: Mon, 19 Oct 2009 10:57:14 -0500 Subject: [PATCH] comctl32: Ensure listview control has focus when marquee dragging. --- dlls/comctl32/listview.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 4de9149c397..3744e1019d3 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -9539,6 +9539,9 @@ static LRESULT LISTVIEW_LButtonDown(LISTVIEW_INFO *infoPtr, WORD wKey, INT x, IN } else { + if (!infoPtr->bFocus) + SetFocus(infoPtr->hwndSelf); + /* remove all selections */ if (!(wKey & MK_CONTROL) && !(wKey & MK_SHIFT)) LISTVIEW_DeselectAll(infoPtr);