ChangeLog Fix thinko that slipped in with the prev patch (reenables refresh) Mark a few things that needs looking at Small cleanup. --- dlls/comctl32/listview.c.W11 Wed Oct 23 15:19:29 2002 +++ dlls/comctl32/listview.c Wed Oct 23 17:50:16 2002 @@ -1427,6 +1427,7 @@ SCROLLINFO scrollInfo; if (infoPtr->dwStyle & LVS_NOSCROLL) return; + /*if (!is_redrawing(infoPtr)) return;*/ scrollInfo.cbSize = sizeof(SCROLLINFO); @@ -1468,11 +1469,8 @@ /* update horizontal scrollbar */ scrollInfo.fMask = SIF_POS; - if (!GetScrollInfo(infoPtr->hwndSelf, SB_HORZ, &scrollInfo) - || infoPtr->nItemCount == 0) - { + if (!GetScrollInfo(infoPtr->hwndSelf, SB_HORZ, &scrollInfo)) scrollInfo.nPos = 0; - } scrollInfo.nMin = 0; scrollInfo.nMax = max(infoPtr->nItemWidth, 0)-1; scrollInfo.nPage = nListWidth; @@ -4039,7 +4037,7 @@ POINT Origin; /* if we don't refresh, what's the point of scrolling? */ - /*if (!is_redrawing(infoPtr)) return; */ + /*if (!is_redrawing(infoPtr)) return;*/ assert (abs(dir) == 1); @@ -6887,7 +6885,7 @@ infoPtr->nFocusedItem = -1; infoPtr->nSelectionMark = -1; infoPtr->nHotItem = -1; - infoPtr->bRedraw = FALSE; + infoPtr->bRedraw = TRUE; infoPtr->bFirstPaint = TRUE; infoPtr->iconSpacing.cx = GetSystemMetrics(SM_CXICONSPACING); infoPtr->iconSpacing.cy = GetSystemMetrics(SM_CYICONSPACING); -- Dimi.