Discussion:
Listview - NM_CUSTOMDRAW and CDDS_SUBITEM. Which subitem ?
(too old to reply)
R.Wieser
2021-02-13 13:57:58 UTC
Permalink
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
2021-02-13 14:07:13 UTC
Permalink
Post by R.Wieser
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

Loading...