BOOL CNewFile::OnInitDialog()
{
CTreeCtrl* pCtrl = (CTreeCtrl*) GetDlgItem(IDC_FILE_LIST);
ASSERT(pCtrl != NULL);
TV_INSERTSTRUCT tvinsert;
tvinsert.hParent=NULL;
tvinsert.hInsertAfter=TVI_LAST;
tvinsert.item.mask=TVIF_TEXT;
tvinsert.item.hItem=NULL;
tvinsert.item.pszText="Stammdaten" ;
HTREEITEM hRoot = pCtrl->InsertItem(&tvinsert);
HTREEITEM hPlus = pCtrl->InsertItem(TVIF_TEXT,
_T("Zusatzdaten"), 0, 0, 0, 0, 0, hRoot, NULL);
tvinsert.item.pszText="Kunde" ;
HTREEITEM hClient = pCtrl->InsertItem(&tvinsert);
HTREEITEM hClientPlus = pCtrl->InsertItem(TVIF_TEXT,
_T("Zusatzdaten"), 0, 0, 0, 0, 0, hClient, NULL);
return FALSE;
}