Anders
Mon Nov 24 02:37:31 CST 2003
On Fri, 21 Nov 2003 14:08:32 -0500, Tony Hu wrote:
> I have a listbox, which contains about 12 items. I want to have it to
> display different colors, depending on its value. Is it possible to do
> that? I know how to change the color and the font of the whole listbox.
> But don't know how to achieve that for each of the listed item.
>
A very neat way is to use Custom-Draw. You need to use version 4.70 or
later, but 'most' people have it already (comes with IE 4 or later)
A very good article is found at CodeProject:
Neat Stuff to do in List Controls Using Custom Draw
By Michael Dunn
http://www.codeproject.com/listctrl/lvcustomdraw.asp
Best Wishes!
// Anders