From f645727afeabd3c6965ee0541fe413ee5a4334f0 Mon Sep 17 00:00:00 2001 From: "Dimitrie O. Paun" Date: Sat, 5 Oct 2002 18:02:54 +0000 Subject: [PATCH] Fix onwer-draw REPORT for broken apps. --- dlls/comctl32/listview.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index e8d020d0969..f0b65f0dfd3 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -3330,8 +3330,13 @@ static void LISTVIEW_RefreshReport(LISTVIEW_INFO *infoPtr, HDC hdc, DWORD cdmode OffsetRect(&dis.rcItem, ptOrig.x, 0); TRACE("item=%s, rcItem=%s\n", debuglvitem_t(&item, TRUE), debugrect(&dis.rcItem)); - if (SendMessageW(GetParent(infoPtr->hwndSelf), WM_DRAWITEM, dis.CtlID, (LPARAM)&dis)) - continue; + SendMessageW(GetParent(infoPtr->hwndSelf), WM_DRAWITEM, dis.CtlID, (LPARAM)&dis); + /* In theory we should do the default drawing if WM_DRAWITEM + * returns FALSE but, in the words of Larry McVoy, in practice + * theory is different than practice, and hence there are + * important apps out there that depend on no default drawing + * in LVS_OWNERDRAWFIXED. So we always skip to the next item. */ + continue; } /* compute the full select rectangle, if needed */