ChangeLog Remove only the necessary selections when setting the item count. --- dlls/comctl32/listview.c.Z0 Fri Oct 25 01:37:53 2002 +++ dlls/comctl32/listview.c Fri Oct 25 10:27:16 2002 @@ -6527,7 +6527,12 @@ UINT uView = infoPtr->dwStyle & LVS_TYPEMASK; INT nOldCount = infoPtr->nItemCount; - LISTVIEW_DeselectAll(infoPtr); + if (nItems < nOldCount) + { + RANGE range = { nItems, nOldCount }; + ranges_del(infoPtr->selectionRanges, range); + } + infoPtr->nItemCount = nItems; LISTVIEW_UpdateScroll(infoPtr); -- Dimi.