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:
parent
13d0c285ca
commit
89ba8760f3
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue