CListBox item background

127 Views Asked by At

I need to set background CListBox background. I can't find solution for set different colors for each item. How can I do that?

1

There are 1 best solutions below

0
On

To get different colors for each item you have to owner-draw the list box. That means you must paint each item yourself. See the CTRLTEST sample in MSDN.