Module: wine Branch: refs/heads/master Commit: 52c204be8872d4ebf0ac66cd7c5c334414456a5a URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=52c204be8872d4ebf0ac66cd...
Author: Mike McCormack mike@codeweavers.com Date: Thu Jun 15 14:23:42 2006 +0900
comctl32: Use the listview's background colour when drawing with imagelist.
---
dlls/comctl32/listview.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 60c3083..ee1f8d2 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -3769,9 +3769,10 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_I himl = (uView == LVS_ICON ? infoPtr->himlNormal : infoPtr->himlSmall); if (himl && lvItem.iImage >= 0 && !IsRectEmpty(&rcIcon)) { - TRACE("iImage=%d\n", lvItem.iImage); - ImageList_Draw(himl, lvItem.iImage, hdc, rcIcon.left, rcIcon.top, - (lvItem.state & LVIS_SELECTED) && (infoPtr->bFocus) ? ILD_SELECTED : ILD_NORMAL); + TRACE("iImage=%d\n", lvItem.iImage); + ImageList_DrawEx(himl, lvItem.iImage, hdc, rcIcon.left, rcIcon.top, + rcIcon.right - rcIcon.left, rcIcon.bottom - rcIcon.top, infoPtr->clrBk, CLR_DEFAULT, + (lvItem.state & LVIS_SELECTED) && (infoPtr->bFocus) ? ILD_SELECTED : ILD_NORMAL); }
/* Don't bother painting item being edited */