Mikołaj Zalewski : comctl32: listview: A CDRF_SKIPDEFAULT for an item should skip the whole row.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jan 16 05:22:17 CST 2007


Module: wine
Branch: master
Commit: 495455c0f8f002ada05cbe0e8701a5b4f24ea2f7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=495455c0f8f002ada05cbe0e8701a5b4f24ea2f7

Author: Mikołaj Zalewski <mikolaj at zalewski.pl>
Date:   Sat Jan 13 23:49:23 2007 +0100

comctl32: listview: A CDRF_SKIPDEFAULT for an item should skip the whole row.

---

 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_I
 
     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;




More information about the wine-cvs mailing list