From: Giovanni Dicanio on

"Giovanni Dicanio" <giovanni.dicanio(a)invalid.it> ha scritto nel messaggio
news:eC6IlhYNIHA.6108(a)TK2MSFTNGP03.phx.gbl...

> template <typename T> // T = contained type
> class ListBox< T >
> {
> ...
>
> T * GetItemDataPtr();
> };

And with this template-based design we could also have polymorphism if we
have a custom hierarchy class structure, e.g. if we have a class Base and a
class Derived (derived from Base), we can just use ListBox< Base >, and
manage Derived with it, too.

G