I have a virtual list view and I want to use custom draw to change the color of the lines but it doesn't work.

When I get CDDS_PREPAINT I reply CDRF_NOTIFYITEMDRAW but I don't receive CDDS_ITEMPREPAINT.
Why?

I did the same thing on a non virtual list view and it works.
Posted on 2004-02-24 09:23:32 by greenant
basically the customdraw stuff works for virtual listview as well.

Possibly you are in a dialog box and have to set DWL_MSGRESULT?

Japheth
Posted on 2004-02-24 10:30:36 by japheth
Yes, I am in a dialog box.
Do I have to use SetWindowLong?
How?
Posted on 2004-02-24 15:08:14 by greenant
It works
Thanks:grin:
Posted on 2004-02-24 15:18:55 by greenant