listview: fill out nmlvcd

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

 



        Aric Stewart <aric@xxxxxxxxxxxxxxx>        
        We need to make sure that customdraw_fill is called even if
        CDRF_NOTIFYITEMDRAW is not being used because we used the text
        and bkground colors from that struct later.

-- 
Huw Davies
huw@xxxxxxxxxxxxxxx

Index: dlls/comctl32/listview.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/listview.c,v
retrieving revision 1.376
diff -u -r1.376 listview.c
--- dlls/comctl32/listview.c	13 Nov 2003 20:50:25 -0000	1.376
+++ dlls/comctl32/listview.c	17 Nov 2003 12:22:57 -0000
@@ -3728,11 +3728,13 @@
 
 	TRACE("item=%s, rcItem=%s\n", debuglvitem_t(&item, TRUE), debugrect(&dis.rcItem));
 
+    /*
+     * Even if we do not send the CDRF_NOTIFYITEMDRAW we need to fill the nmlvcd
+     * structure for the rest. of the paint cycle
+     */
+	customdraw_fill(&nmlvcd, infoPtr, hdc, &dis.rcItem, &item);
 	if (cdmode & CDRF_NOTIFYITEMDRAW)
-	{
-	    customdraw_fill(&nmlvcd, infoPtr, hdc, &dis.rcItem, &item);
             cditemmode = notify_customdraw(infoPtr, CDDS_PREPAINT, &nmlvcd);
-	}
     
 	if (!(cditemmode & CDRF_SKIPDEFAULT))
 	{


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

  Powered by Linux