Scroll the listview when doing multiple selections.

This commit is contained in:
Paul Rupe 2002-10-10 18:56:50 +00:00 committed by Alexandre Julliard
parent 0a17edf3a5
commit 8b3da5e3ba
1 changed files with 1 additions and 2 deletions

View File

@ -2502,7 +2502,6 @@ static BOOL LISTVIEW_KeySelection(LISTVIEW_INFO *infoPtr, INT nItem)
{ {
bResult = TRUE; bResult = TRUE;
LISTVIEW_SetSelection(infoPtr, nItem); LISTVIEW_SetSelection(infoPtr, nItem);
ListView_EnsureVisible(infoPtr->hwndSelf, nItem, FALSE);
} }
else else
{ {
@ -2519,10 +2518,10 @@ static BOOL LISTVIEW_KeySelection(LISTVIEW_INFO *infoPtr, INT nItem)
{ {
bResult = TRUE; bResult = TRUE;
LISTVIEW_SetSelection(infoPtr, nItem); LISTVIEW_SetSelection(infoPtr, nItem);
}
}
ListView_EnsureVisible(infoPtr->hwndSelf, nItem, FALSE); ListView_EnsureVisible(infoPtr->hwndSelf, nItem, FALSE);
} }
}
}
UpdateWindow(infoPtr->hwndSelf); /* update client area */ UpdateWindow(infoPtr->hwndSelf); /* update client area */
return bResult; return bResult;