Module: wine Branch: master Commit: 36e9153f38af09abe4e527fb9b62d5aa4c1201c9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=36e9153f38af09abe4e527fb9b...
Author: Owen Rudge orudge@codeweavers.com Date: Mon Oct 19 10:57:14 2009 -0500
comctl32: Ensure listview control has focus when marquee dragging.
---
dlls/comctl32/listview.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 4de9149..3744e10 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);