comctl32/listview: Correct sending NM_CUSTOMDRAW to subitem 0.

This commit is contained in:
Daniel Jelinski 2013-03-07 20:35:19 +01:00 committed by Alexandre Julliard
parent 7d8c8af9d7
commit fae9738cc3
1 changed files with 1 additions and 1 deletions

View File

@ -4621,7 +4621,7 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
if (nSubItem == 0) infoPtr->cditemmode = cdsubitemmode;
if (cdsubitemmode & CDRF_SKIPDEFAULT) goto postpaint;
/* we have to send a CDDS_SUBITEM customdraw explicitly for subitem 0 */
if (nSubItem == 0 && cdsubitemmode == CDRF_NOTIFYITEMDRAW)
if (nSubItem == 0 && (cdsubitemmode & CDRF_NOTIFYITEMDRAW) != 0)
{
cdsubitemmode = notify_customdraw(infoPtr, CDDS_SUBITEM | CDDS_ITEMPREPAINT, &nmlvcd);
if (cdsubitemmode & CDRF_SKIPDEFAULT) goto postpaint;