When you add the item to the list, you can pass your own data by setting the LVIF_PARAM
flag and filling out the lParam
member of the LVITEM
structure. This then gets passed back to you as NMCUSTOMDRAW::lItemlParam
.
Don't get confused by the lParam
that that comes with the WM_NOTIFY
message itself, that's a different lParam
:)