What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » VB Win32 Coding - Listview

VB Win32 Coding - Listview
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: VB Win32 Coding - Listview
well, ermmm... you're going to need to totally subclass your listview and make it owner drawn because you are going to need to draw the individual items yourself instead of letting Windows do the job.

This is no small task to do (especially considering the listview is one of the biggest Windows controls with the most possible messages and what not); making a control owner drawn is not that difficult, but handling the messages appropiatly is.

I never attempted to make subtext colored, in another font and all, so I don't have a concrete example for this. But maybe some of these can get you started:
http://www.vbaccelerator.com/home/VB/Code/Control...stView/article.asp
http://www.mvps.org/vbvision/
http://www.elitevb.com/content/01,0048,01/
ListView Ref

I never seen an example on the net which let you colorize and customize parts of items in a listview, they all do it to the whole item text (but mind the sometimes many -hidden- bugs in online examples).

I assume drawing mixed colorized text and all will also involve some GDI (font) stuff so you need to look into that also...

This post was edited on 10-05-2005 at 11:06 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
10-05-2005 11:02 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
VB Win32 Coding - Listview - by matty on 10-05-2005 at 08:21 PM
RE: VB Win32 Coding - Listview - by CookieRevised on 10-05-2005 at 11:02 PM
RE: VB Win32 Coding - Listview - by RaceProUK on 10-06-2005 at 01:15 PM
RE: VB Win32 Coding - Listview - by CookieRevised on 10-06-2005 at 01:51 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On