Hi,
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?
thanks alot
wayne
David Lowndes - 16 May 2005 08:01 GMT
>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

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