[comctl32] fix visual glitch in lv

Felix Nawothnig felix.nawothnig at t-online.de
Sat May 21 06:20:38 CDT 2005


The second subitem of a report-lv is redrawn using the colors for the 
first one - this is wrong for a selected !LVS_EX_FULLROWSELECT item.

This patch fixes the (unrelated) visual glitch described in bug 147.

ChangeLog:
Reset colors for second subitem on redraw
-------------- next part --------------
Index: listview.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/listview.c,v
retrieving revision 1.413
diff -u -r1.413 listview.c
--- listview.c	20 May 2005 19:16:23 -0000	1.413
+++ listview.c	21 May 2005 11:06:54 -0000
@@ -3671,7 +3671,7 @@
         cdsubitemmode = notify_customdraw(infoPtr, CDDS_SUBITEM | CDDS_ITEMPREPAINT, &nmlvcd);
         if (cdsubitemmode & CDRF_SKIPDEFAULT) goto postpaint;
     }
-    if (nSubItem == 0 || (cdmode & CDRF_NOTIFYITEMDRAW))
+    if (nSubItem < 2 || (cdmode & CDRF_NOTIFYITEMDRAW))
         prepaint_setup(infoPtr, hdc, &nmlvcd);
 
     /* in full row select, subitems, will just use main item's colors */


More information about the wine-patches mailing list