From 7e1e62de1c487401d3923884508532d49262f4d7 Mon Sep 17 00:00:00 2001 From: Guy Albertelli Date: Sun, 29 Sep 2002 18:34:51 +0000 Subject: [PATCH] - Eliminate extra background fills. - Eliminate bogus error messages. --- dlls/comctl32/listview.c | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 940a44f1448..8ed8574c181 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -2991,7 +2991,6 @@ static void LISTVIEW_DrawSubItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT LVITEMW lvItem; LVCOLUMNW lvColumn; UINT textoutOptions = ETO_CLIPPED | ETO_OPAQUE; - RECT rcTemp; INT textLeft; INT nLabelWidth = 0; @@ -3023,16 +3022,6 @@ static void LISTVIEW_DrawSubItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT } } - - /* redraw the background of the item */ - rcTemp = rcItem; - if(infoPtr->nColumnCount == (nSubItem + 1)) - rcTemp.right = infoPtr->rcList.right; - else - rcTemp.right += WIDTH_PADDING; - - LISTVIEW_FillBkgnd(infoPtr, hdc, &rcTemp); - /* set item colors */ if (ListView_GetItemState(infoPtr->hwndSelf,nItem,LVIS_SELECTED) && Selected) { @@ -3116,7 +3105,6 @@ static void LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, RECT r BOOL bImage = FALSE; INT iBkMode = -1; UINT textoutOptions = ETO_OPAQUE | ETO_CLIPPED; - RECT rcTemp; TRACE("(hdc=%x, nItem=%d)\n", hdc, nItem); @@ -3131,15 +3119,6 @@ static void LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, RECT r LISTVIEW_GetItemW(infoPtr, &lvItem, TRUE); TRACE(" lvItem=%s\n", debuglvitem_t(&lvItem, TRUE)); - /* redraw the background of the item */ - rcTemp = rcItem; - if(infoPtr->nColumnCount == (nItem + 1)) - rcTemp.right = infoPtr->rcList.right; - else - rcTemp.right+=WIDTH_PADDING; - - LISTVIEW_FillBkgnd(infoPtr, hdc, &rcTemp); - /* do indent */ if (lvItem.iIndent>0 && infoPtr->iconSize.cx > 0) { @@ -3322,8 +3301,6 @@ static void LISTVIEW_DrawLargeItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, R TRACE("background rect (%d,%d)-(%d,%d)\n", rcFill.left, rcFill.top, rcFill.right, rcFill.bottom); - LISTVIEW_FillBkgnd(infoPtr, hdc, &rcFill); - /* Set the item to the boundary box for now */ rcItem = rcFill; TRACE("bound box for text+icon (%d,%d)-(%d,%d), iS.cx=%ld, nItemWidth=%d\n", @@ -4611,10 +4588,6 @@ static BOOL LISTVIEW_EnsureVisible(LISTVIEW_INFO *infoPtr, INT nItem, BOOL bPart nScrollPosHeight = 1; rcItem.top += infoPtr->rcList.top; } - else - { - ERR("LVS_LIST top unknown, nScrollPosWidth=%d\n", nScrollPosWidth); - } if (nScrollPosHeight) { @@ -4643,10 +4616,6 @@ static BOOL LISTVIEW_EnsureVisible(LISTVIEW_INFO *infoPtr, INT nItem, BOOL bPart nScrollPosHeight = 1; rcItem.bottom -= infoPtr->rcList.bottom; } - else /* LVS_LIST */ - { - ERR("LVS_LIST bottom unknown, nScrollPosWidth=%d\n", nScrollPosWidth); - } if (nScrollPosHeight) {