Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A ListBox problem

Status
Not open for further replies.

chenshch

Technical User
Jun 9, 2004
8
CN
Hello!

when I add a new item to my ListBox ,I want to choose a new color for
it(different color from other items).

Can I make it? or is there any method I can distingush some items from
other items except by selecting them.

Or to I have rewrite the ListBox ,to make it have this function.

waiting for help
 
You would need to override OnPaint event for an listitem to change it's default behavior and then take care of the drawing sequence before the default listitem drawing.

________
George, M
Searches(faq333-4906),Carts(faq333-4911)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top