HTREEITEM hitem = tree.InsertItem(_T("Shabbir")); tree.InsertItem(_T("Another one"),hitem); tree.Expand(hitem,TVE_EXPAND);