Listview W2
Dimitrie O. Paun
dpaun at rogers.com
Mon Oct 21 21:42:04 CDT 2002
Another 'death to flicker'.
Now we should be smocking in LVS_{,SMALL}ICON mode.
No flicker. No hassles. Pure enjoyment. ;)
ChangeLog
Do not autoarrange if we insert/delete from the end of the list.
--- dlls/comctl32/listview.c.W1 Mon Oct 21 22:20:33 2002
+++ dlls/comctl32/listview.c Mon Oct 21 22:39:32 2002
@@ -4043,7 +4043,12 @@
/* arrange icons if autoarrange is on */
if (infoPtr->dwStyle & LVS_AUTOARRANGE)
- LISTVIEW_Arrange(infoPtr, LVA_DEFAULT);
+ {
+ BOOL arrange = TRUE;
+ if (dir < 0 && nItem >= infoPtr->nItemCount) arrange = FALSE;
+ if (dir > 0 && nItem == infoPtr->nItemCount - 1) arrange = FALSE;
+ if (arrange) LISTVIEW_Arrange(infoPtr, LVA_DEFAULT);
+ }
/* scrollbars need updating */
LISTVIEW_UpdateScroll(infoPtr);
More information about the wine-patches
mailing list