Listview, Treeview, or Owner Draw

I want to display a listbox with the first part of the entry in one font, the second in another font. I had thought that owner draw was the best way to go for this, but I don't know enough about the other two to be sure. In essence, I want...

abc@vx279

where the "abc" section would be in one font, with the rest of the selection in another font, a completely different font.

So is owner draw the best way to do this, or is listview, or treeview, or something else?
Last edited on
Owner-drawn is the ONLY way to go.

A ListView is an enhanced list box, capable of presenting in different sizes and arrangements, and that can associate a picture to each item in the list.

A TreeView is a hierarchical view for data that is, well, hierarchical. The list of folders to the left in a Windows Explorer window is a TreeView. Perfect for displaying the directories in a drive because, you guessed it, they are hierarchically ordered.

Niether ListView nor TreeView can display a single item in two different fonts.
Okay, that confirms it.
Topic archived. No new replies allowed.