In continuation to recently posted “Smart ATL/WTL combo box and list view classes to cast and optionally manage typed control item data”, list box and tree view classes aware of typed item control data.
Keywords: DWORD_PTR, LPARAM, LB_GETITEMDATA, LB_SETITEMDATA, TVM_GETITEM, TVM_SETITEM
Visual C++.NET 2005 source code can be downloaded here, compiled binary – here.