listview: fill out nmlvcd

Huw D M Davies h.davies1 at physics.ox.ac.uk
Mon Nov 17 06:25:31 CST 2003


        Aric Stewart <aric at codeweavers.com>        
        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 at codeweavers.com

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))
 	{



More information about the wine-patches mailing list