This code should help you.

Code:
	HTREEITEM hitem = tree.InsertItem(_T("Shabbir"));
	tree.InsertItem(_T("Another one"),hitem);
	tree.Expand(hitem,TVE_EXPAND);
tree is a CTreeCtrl object