comctl32: Use the listview's background colour when drawing with imagelist.
This commit is contained in:
parent
172e183cf3
commit
52c204be88
@ -3769,9 +3769,10 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
|
|||||||
himl = (uView == LVS_ICON ? infoPtr->himlNormal : infoPtr->himlSmall);
|
himl = (uView == LVS_ICON ? infoPtr->himlNormal : infoPtr->himlSmall);
|
||||||
if (himl && lvItem.iImage >= 0 && !IsRectEmpty(&rcIcon))
|
if (himl && lvItem.iImage >= 0 && !IsRectEmpty(&rcIcon))
|
||||||
{
|
{
|
||||||
TRACE("iImage=%d\n", lvItem.iImage);
|
TRACE("iImage=%d\n", lvItem.iImage);
|
||||||
ImageList_Draw(himl, lvItem.iImage, hdc, rcIcon.left, rcIcon.top,
|
ImageList_DrawEx(himl, lvItem.iImage, hdc, rcIcon.left, rcIcon.top,
|
||||||
(lvItem.state & LVIS_SELECTED) && (infoPtr->bFocus) ? ILD_SELECTED : ILD_NORMAL);
|
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 */
|
/* Don't bother painting item being edited */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user