From 5feaff534b9483201303885a5f844e4b0a2698e1 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 11 Oct 2002 04:19:20 +0000 Subject: [PATCH] LVS_OWNERDRAWFIXED should only take effect in REPORT mode. --- dlls/comctl32/listview.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 0941be2318d..b751705039c 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -3519,12 +3519,15 @@ static void LISTVIEW_Refresh(LISTVIEW_INFO *infoPtr, HDC hdc) /* nothing to draw */ if(infoPtr->nItemCount == 0) goto enddraw; - if (infoPtr->dwStyle & LVS_OWNERDRAWFIXED) - LISTVIEW_RefreshOwnerDraw(infoPtr, hdc); - else if (uView == LVS_ICON) + if (uView == LVS_ICON) LISTVIEW_RefreshIcon(infoPtr, hdc, cdmode); else if (uView == LVS_REPORT) - LISTVIEW_RefreshReport(infoPtr, hdc, cdmode); + { + if (infoPtr->dwStyle & LVS_OWNERDRAWFIXED) + LISTVIEW_RefreshOwnerDraw(infoPtr, hdc); + else + LISTVIEW_RefreshReport(infoPtr, hdc, cdmode); + } else /* LVS_LIST or LVS_SMALLICON */ LISTVIEW_RefreshList(infoPtr, hdc, cdmode);