From: Daniel JeliƄski Subject: comctl32/listview: preserve custom colors between subitems Message-Id: Date: Sat, 12 Jul 2014 23:58:19 +0200

From 7d762407698608324761a82f0c6f9af5dd7f59b5 Mon Sep 17 00:00:00 2001 From: Daniel Jelinski 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