From 89ba8760f301669214981fb4c0c00580bac557ee Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Tue, 18 Nov 2003 00:04:27 +0000 Subject: [PATCH] We need to make sure that customdraw_fill is called even if CDRF_NOTIFYITEMDRAW is not being used because we used the text and background colors from that struct later. --- dlls/comctl32/listview.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index b3f4ca2002c..43ac1a8297e 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -3728,11 +3728,13 @@ static void LISTVIEW_RefreshOwnerDraw(LISTVIEW_INFO *infoPtr, ITERATOR *i, HDC h 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)) { -- 2.11.4.GIT