We need to make sure that customdraw_fill is called even if

CDRF_NOTIFYITEMDRAW is not being used because we used the text and
background colors from that struct later.
This commit is contained in:
Aric Stewart 2003-11-18 00:04:27 +00:00 committed by Alexandre Julliard
parent 13d0c285ca
commit 89ba8760f3
1 changed files with 5 additions and 3 deletions

View File

@ -3728,11 +3728,13 @@ static void LISTVIEW_RefreshOwnerDraw(LISTVIEW_INFO *infoPtr, ITERATOR *i, HDC h
TRACE("item=%s, rcItem=%s\n", debuglvitem_t(&item, TRUE), debugrect(&dis.rcItem)); TRACE("item=%s, rcItem=%s\n", debuglvitem_t(&item, TRUE), debugrect(&dis.rcItem));
if (cdmode & CDRF_NOTIFYITEMDRAW) /*
{ * Even if we do not send the CDRF_NOTIFYITEMDRAW we need to fill the nmlvcd
* structure for the rest. of the paint cycle
*/
customdraw_fill(&nmlvcd, infoPtr, hdc, &dis.rcItem, &item); customdraw_fill(&nmlvcd, infoPtr, hdc, &dis.rcItem, &item);
if (cdmode & CDRF_NOTIFYITEMDRAW)
cditemmode = notify_customdraw(infoPtr, CDDS_PREPAINT, &nmlvcd); cditemmode = notify_customdraw(infoPtr, CDDS_PREPAINT, &nmlvcd);
}
if (!(cditemmode & CDRF_SKIPDEFAULT)) if (!(cditemmode & CDRF_SKIPDEFAULT))
{ {