comctl32: listview[1/2]: a CDRF_SKIPDEFAULT for an item should skip the whole row (fixes bug #6546)

Mikołaj Zalewski mikolaj at zalewski.pl
Sat Jan 13 16:49:23 CST 2007


Only for subitems we should skip only one cell
-------------- next part --------------
From e084894a8af7d322ce87187bbec7db9e78e4f198 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Miko=C5=82aj_Zalewski?= <mikolaj at zalewski.pl>
Date: Sat, 13 Jan 2007 20:02:02 +0100
Subject: [PATCH] comctl32: listview: a CDRF_SKIPDEFAULT for an item should skip the whole row (fixes bug #6546)

---
 dlls/comctl32/listview.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 11e02ee..a2deee3 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -3749,6 +3749,7 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
 
     hOldFont = GetCurrentObject(hdc, OBJ_FONT);
     if (nSubItem > 0) cdmode = infoPtr->cditemmode;
+    if (cdmode & CDRF_SKIPDEFAULT) goto postpaint;
     if (cdmode & CDRF_NOTIFYITEMDRAW)
         cdsubitemmode = notify_customdraw(infoPtr, CDDS_PREPAINT, &nmlvcd);
     if (nSubItem == 0) infoPtr->cditemmode = cdsubitemmode;
-- 
1.4.4.2


More information about the wine-patches mailing list