If you do, you probably have had some experience with the TVINSERTSTRUCT and TVITEM structures.

How do you manage the pszText member? I mean, how do you store the string so it will be properly deleted? Also, what is the lParam supposed to be used for? I was thinking of using it to store a pointer, but that doesnt seem very proper.