comctl32: Ensure listview control has focus when marquee dragging.

This commit is contained in:
Owen Rudge 2009-10-19 10:57:14 -05:00 committed by Alexandre Julliard
parent f1bb67222e
commit 36e9153f38
1 changed files with 3 additions and 0 deletions

View File

@ -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);