Skip to main content
gamedev.net
🔒 Locked

CListBox help

Started by xtrmntr 0 replies 900+ views
Original Post
xtrmntr
xtrmntr
The normal operation of a listbox is a vertical list of strings. What I want is a horizontal list of images. Is there built-in functionality that accomplishes this already (or maybe just part of this) or do I have to create this type of behavior from scratch? One way I could possibly implement this is to make the listbox owner-draw and display items, check for selection, etc. on my own. Any ideas about a different way of implementing this or a link to an example of something related to this topic would be greatly appreciated.
Tornado
Tornado
How about a ListView control? You can use a ListView control in Icon mode or Tile mode (On WinXP) and have a list of images (That all come from an ImageList).
Another way to do it is like you suggested - owner-draw the listbox control. You should check out code samples at The Code Project and Code Guru, I think I saw something with an owner drawn listbox over there...


Goblineye Entertainment
The road to success is always under construction
Goblineye EntertainmentThe road to success is always under construction

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.