Once you create a node
Printable View
Once you create a node
Use the insert method that accepts a TVINSERTSTRUCT. Then in the TVITEM of this struct add TVIF_CHILDREN to the mask, and for the cChildren member specify 1. (Or you can specify I_CHILDRENCALLBACK and in the OnDispInfo, when requested for the number or children return a non-zero number).
Hope this helps.