S
SStory
For an owner drawn list box,
I have a collection that represents some graphics objects in my app.
I inherited the collection class from collectionbase.
It would be nice to somehow just set the lstbox.datasource=mycollection
and have it work, but this seemed to never work so I just run through my
collection and popualate the list.
This is a real waste because the collection contains classes that have one
property that is a bitmap. There won't be many of them but still this is
duplicating memory.
Anyone know a way to make a collection class that works normally and also
with a listbox?
Remember I owner draw each item.
Thanks,
Shane
I have a collection that represents some graphics objects in my app.
I inherited the collection class from collectionbase.
It would be nice to somehow just set the lstbox.datasource=mycollection
and have it work, but this seemed to never work so I just run through my
collection and popualate the list.
This is a real waste because the collection contains classes that have one
property that is a bitmap. There won't be many of them but still this is
duplicating memory.
Anyone know a way to make a collection class that works normally and also
with a listbox?
Remember I owner draw each item.
Thanks,
Shane