C
Charles Law
Ok. I haven't been around for a while, so I hope someone will come to my
rescue. I thought I had done this years ago, but I have scoured my code
snippets and can't find it.
I want my ListView control to have a different background colour on
alternate rows. I'm using VS2005.
Firstly, I'm surprised that I can't do it out of the box. But secondly, I
can't find a really simple one-liner that let's me do it by overriding
something.
I could owner draw, or custom draw, but these seem to be the hammer to crack
the nut. Is there a way to do this easily?
Failing that, what is the preferred way?
TIA
Charles
rescue. I thought I had done this years ago, but I have scoured my code
snippets and can't find it.
I want my ListView control to have a different background colour on
alternate rows. I'm using VS2005.
Firstly, I'm surprised that I can't do it out of the box. But secondly, I
can't find a really simple one-liner that let's me do it by overriding
something.
I could owner draw, or custom draw, but these seem to be the hammer to crack
the nut. Is there a way to do this easily?
Failing that, what is the preferred way?
TIA
Charles