Listview - NM_CUSTOMDRAW and CDDS_SUBITEM. Which subitem ?

3 views
Skip to first unread message

R.Wieser

unread,
Feb 13, 2021, 8:58:05 AMFeb 13
to
Hello all,

I'm trying to figure out if I can overrule (some aspects of) a listviews
subitem. But shortly on that way and I'm already stuck. :-(

I'm catching NM_CUSTOMDRAW message and reply with a CDRF_NOTIFYSUBITEMDRAW.
As a result I'm getting NM_CUSTOMDRAW messages with the CDDS_ITEMPREPAINT
stage set.

The problem is that I can see, in the NMCUSTOMDRAW record, which item (row),
but not which subitem(column) the drawing stage is for.

(as a result) I also do not see a(n easy) way to inspect the items contents
are, or how to alter it /for displaying only/ (like changing "Y" to "Yes",
without altering the stored data).

Regards,
Rudy Wieser


R.Wieser

unread,
Feb 13, 2021, 9:07:21 AMFeb 13
to

> The problem is that I can see, in the NMCUSTOMDRAW record, which item
> (row),
> but not which subitem(column) the drawing stage is for.

That is because I should have looked it the NM*LV*CUSTOMDRAW record ...

Always fun when you find the answer mere seconds after you poste the
question. :-)

Regards,
Rudy Wieser


Reply all
Reply to author
Forward
0 new messages