Listview Z4
Dimitrie O. Paun
dpaun at rogers.com
Fri Oct 25 10:25:56 CDT 2002
ChangeLog
Eliminate flicker when resizing, docs updates.
--- dlls/comctl32/listview.c.Z3 Fri Oct 25 11:16:17 2002
+++ dlls/comctl32/listview.c Fri Oct 25 11:23:40 2002
@@ -48,12 +48,10 @@
* -- LISTVIEW_GetNextItem is very inefficient
* -- LISTVIEW_SetColumnWidth ignores header images & bitmap
* -- LISTVIEW_SetIconSpacing is incomplete
- * -- LVSICF_NOINVALIDATEALL, LVSICF_NOSCROLL not implemented
* -- LISTVIEW_SortItems is broken
* -- LISTVIEW_StyleChanged doesn't handle some changes too well
*
* Speedups
- * -- LISTVIEW_Size invalidates too much
* -- in sorted mode, LISTVIEW_InsertItemT sorts the array,
* instead of inserting in the right spot
* -- we should keep an ordered array of coordinates in iconic mode
@@ -8074,7 +8072,11 @@
LISTVIEW_UpdateScroll(infoPtr);
- LISTVIEW_InvalidateList(infoPtr); /* FIXME: optimize */
+ /* refresh all only for lists whose height changed significantly */
+ if ((infoPtr->dwStyle & LVS_TYPEMASK) == LVS_LIST &&
+ (rcOld.bottom - rcOld.top) / infoPtr->nItemHeight !=
+ (infoPtr->rcList.bottom - infoPtr->rcList.top) / infoPtr->nItemHeight)
+ LISTVIEW_InvalidateList(infoPtr);
return 0;
}
--
Dimi.
More information about the wine-patches
mailing list