List box visible items are invalidated from the top if tab stops
are used (Bug 4422)
Raimonds Praude
raimonds.praude at sets.lv
Wed Feb 1 05:45:17 CST 2006
Corrected TAB stop processing: if the current tab stops values were modified,
the old items remained with the "old" tabstops, while the new items appeared
with the new ones. Corrected so that all visible items are refreshed.
Index: dlls/user/listbox.c
===================================================================
RCS file: /home/wine/wine/dlls/user/listbox.c,v
retrieving revision 1.26
diff -u -r1.26 listbox.c
--- dlls/user/listbox.c 1 Dec 2005 11:59:24 -0000 1.26
+++ dlls/user/listbox.c 1 Feb 2006 10:55:17 -0000
@@ -1566,7 +1566,10 @@
/* Repaint the items */
LISTBOX_UpdateScroll( descr );
- LISTBOX_InvalidateItems( descr, index );
+ if (descr->style & LBS_USETABSTOPS )
+ LISTBOX_InvalidateItems( descr, descr->top_item );
+ else
+ LISTBOX_InvalidateItems( descr, index );
/* Move selection and focused item */
/* If listbox was empty, set focus to the first item */
More information about the wine-patches
mailing list