List Box

  • Thread starter Thread starter wayne
  • Start date Start date
W

wayne

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
 
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
 
Back
Top