A multicolumn listview should get a customdraw notification for the
item as well as one for subitem 0.
This commit is contained in:
parent
2aba972aff
commit
ac24a0a692
|
@ -3599,6 +3599,12 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
|
||||||
cdsubitemmode = notify_customdraw(infoPtr, CDDS_PREPAINT, &nmlvcd);
|
cdsubitemmode = notify_customdraw(infoPtr, CDDS_PREPAINT, &nmlvcd);
|
||||||
if (nSubItem == 0) infoPtr->cditemmode = cdsubitemmode;
|
if (nSubItem == 0) infoPtr->cditemmode = cdsubitemmode;
|
||||||
if (cdsubitemmode & CDRF_SKIPDEFAULT) goto postpaint;
|
if (cdsubitemmode & CDRF_SKIPDEFAULT) goto postpaint;
|
||||||
|
/* we have to send a CDDS_SUBITEM customdraw explicitly for subitem 0 */
|
||||||
|
if (nSubItem == 0 && cdsubitemmode == CDRF_NOTIFYITEMDRAW)
|
||||||
|
{
|
||||||
|
cdsubitemmode = notify_customdraw(infoPtr, CDDS_SUBITEM | CDDS_ITEMPREPAINT, &nmlvcd);
|
||||||
|
if (cdsubitemmode & CDRF_SKIPDEFAULT) goto postpaint;
|
||||||
|
}
|
||||||
if (nSubItem == 0 || (cdmode & CDRF_NOTIFYITEMDRAW))
|
if (nSubItem == 0 || (cdmode & CDRF_NOTIFYITEMDRAW))
|
||||||
prepaint_setup(infoPtr, hdc, &nmlvcd);
|
prepaint_setup(infoPtr, hdc, &nmlvcd);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue