newntui/discovermdi/src/simplifytree.cpp
//---------------------------------------------------------------------------------------------------
// This private function will parse selected file with the index "element" and will fill the
// tree with the data
//---------------------------------------------------------------------------------------------------
This private function will parse selected file with the index "element" and will fill the
tree with the data
This private function will parse selected file with the index " element " and will fill the tree with the data
void CSimplifyTree::ParseAndFillTree(int element,const CString& filename) {
    CString str;
    CString query;
    BSTR sysQuery;
	CString shortName = GetShortName(filename);
    query.Format("fname {%s}",filename);
    sysQuery=query.AllocSysString();
    str=DataSourceAccessSync(&sysQuery);
	SysFreeString(sysQuery); 
	m_FileName = str;
	EndSimplify();
	ClearTree(m_Tree.GetRootItem());
	m_Tree.DeleteAllItems();
	m_SavedSelection=m_CurrentItem=element;
	SimplifyRunThread(this);
}
void CSimplifyTree :: ParseAndFillTree ( int element , const CString & filename ) { CString str ; CString query ; BSTR sysQuery ; CString shortName = GetShortName ( filename ) ; query . Format ( " " , filename ) ; sysQuery = query . AllocSysString ( ) ; str = DataSourceAccessSync ( & sysQuery ) ; SysFreeString ( sysQuery ) ; m_FileName = str ; EndSimplify ( ) ; ClearTree ( m_Tree . GetRootItem ( ) ) ; m_Tree . DeleteAllItems ( ) ; m_SavedSelection = m_CurrentItem = element ; SimplifyRunThread ( this ) ; }
This private function will parse selected file with the index "element" and will fill the
tree with the data
This private function will parse selected file with the index " element " and will fill the tree with the data
//	DWORD dwThreadId; //	CreateThread(NULL,0,SimplifyRunThread,(LPVOID)this,0,&dwThreadId);