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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subclassing for VB6 Listview?

Status
Not open for further replies.

jpbrassard

Programmer
Oct 6, 2001
60
0
0
US
I'm trying to find a way to change the BackColor of individual ListItems in the VB6 ListView control. There's no provided way to do it through the control itself - you can change the backcolor of the entire control, or the forecolor of individual ListItems, but not the backcolor for individual ListItems.

So, yeah, it's going to require subclassing, right? Does anyone have any code that shows how to do what I'm asking? I've been scouring the 'net all day and haven't really come up with anything yet. Any help will be greatly appreciated!

Thanks,
jp
 
Theoretically you could do this by drawing into the picture property of the listview. But you would need to update your drawing each time the list was scrolled.

Robert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top