Void CBROWSEDLG :: Browsedir (cstring strdir) {cfilefind ff; cstract szdir = strdir; htreeItem hsubitem; if (szdir.right (1)! = "//") {szdir = "//";} SZDIR = "*. *";
Bool res = ff.findfile (szdir);
While (res) {res = ff.findNextFile (); if (ff.isdirectory () &&! ff.isdots ()) {cstring strpath = ff.getfilepath (); cstract startle = ff.getFileTitle (); hsubItem = m_filetree . INSERTITEM (STRTITLE, 0, 0, PARENT); Browsedir (StrPath, HSubitem);} else {if (! Ff.isdirectory () &&! Ff.isdots ()) {cstring startle = ff.getFileTitle (); m_filetree. INSERTITEM (STRTITLE, 0, 0, PARENT);}}} ff.close ();