listview: subitem color handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This fixes the newspro regression recently reported by Rein Klazes.

ChangeLog
    If we don't send custom draw messages for subitems,
    inherit the color & text attributes of the main item.

Index: dlls/comctl32/listview.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/listview.c,v
retrieving revision 1.359
diff -u -r1.359 listview.c
--- dlls/comctl32/listview.c	25 Aug 2003 23:44:51 -0000	1.359
+++ dlls/comctl32/listview.c	29 Aug 2003 20:13:33 -0000
@@ -3565,7 +3565,8 @@
         cdsubitemmode = notify_customdraw(infoPtr, CDDS_PREPAINT, &nmlvcd);
     if (nSubItem == 0) infoPtr->cditemmode = cdsubitemmode;
     if (cdsubitemmode & CDRF_SKIPDEFAULT) goto postpaint;
-    prepaint_setup(infoPtr, hdc, &nmlvcd);
+    if (nSubItem == 0 || (cdmode & CDRF_NOTIFYITEMDRAW))
+        prepaint_setup(infoPtr, hdc, &nmlvcd);
 
     /* in full row select, subitems, will just use main item's colors */
     if (nSubItem && uView == LVS_REPORT && (infoPtr->dwLvExStyle & LVS_EX_FULLROWSELECT))


-- 
Dimi.



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux