comctl32/listview: preserve custom colors between subitems

Daniel Jeliński djelinski1 at gmail.com
Sat Jul 12 16:58:19 CDT 2014


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140712/070e3fcf/attachment.html>
-------------- next part --------------
From 7d762407698608324761a82f0c6f9af5dd7f59b5 Mon Sep 17 00:00:00 2001
From: Daniel Jelinski <djelinski1 at gmail.com>
Date: Sat, 12 Jul 2014 23:25:15 +0200
Subject: comctl32/listview: preserve custom colors between subitems

Fixes the final problem from bug 9491.
Custom draw in details mode should use colors returned by item's notfication if notifications for subitems were not requested.
---
 dlls/comctl32/listview.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index bc748c6..c001129 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -4775,11 +4775,6 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, ITERAT
 
             if (cdsubitemmode & CDRF_NOTIFYSUBITEMDRAW)
                 subitemstage = notify_customdraw(infoPtr, CDDS_SUBITEM | CDDS_ITEMPREPAINT, &nmlvcd);
-            else
-            {
-                nmlvcd.clrTextBk = infoPtr->clrTextBk;
-                nmlvcd.clrText   = infoPtr->clrText;
-            }
 
             if (subitems->nItem == 0 || (cdmode & CDRF_NOTIFYITEMDRAW))
                 prepaint_setup(infoPtr, hdc, &nmlvcd, FALSE);
-- 
1.9.1



More information about the wine-patches mailing list