Re: List Box



>May i know if we are able to change the text color of the List Box? For
>example, i have 10 items in the List Box. By default, the words are
>black in color. Is there anyway i can change 1 or 2 items to another
>color, while the rest remain as black?

Wayne,

You will need to make the control use the owner drawn style and add
handlers for the WM_MEASUREITEM & WM_DRAWITEM messages.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
.



Relevant Pages