![](image/doc.gif)
proceedings:maybe use HTREEITEM as the parameter in BrowseFile
function.
good luck!
(发表于2003-4-2 20:35:00)
![](image/doc.gif)
byb:HTREEITEM suu[10];
if(CallNum==1)
suu[CallNum] = m_FileTree.InsertItem(strTitle,0,0,NULL);
else{
suu[CallNum] = m_FileTree.InsertItem(strTitle,0,0,suu[CallNum-1]);
}
BrowseFile(CallNum,strPath);
}
else if(!ff.IsDirectory() && !ff.IsDots())
{
//显示当前访问的文件
CString strPath;
CString strTitle;
strPath = ff.GetFilePath();
strTitle = ff.GetFileTitle();
if(CallNum==1)
suu[CallNum] = m_FileTree.InsertItem(strTitle,0,0,NULL);
else{
suu[CallNum] = m_FileTree.InsertItem(strTitle,0,0,suu[CallNum-1]);
}
}不知道这样改一下是不是能提高效率!!!!!!!
(发表于2003-4-8 17:20:00)
![](image/doc.gif)
lsjpyx:谢谢楼上各位的帮忙!大二了,我们学校要考四级了,鄙人最近不得不忍痛割爱,去忙于准备四级,谢谢大家给我的补充!!!!!!
(发表于2003-4-9 12:51:00)
![](image/doc.gif)
zhonghaishan:BrowseFile(HTREEITEM hItem, CString strFile)
{
HTREEITEM hTempItem;
....
//文件夹
hTempItem=m_FileTree.InsertItem(strTitle,0,0,hItem);
BrowseFile(hTempItem,strPath);
//文件
m_FileTree.InserItem(strTitle,0,0,hItem);
....
}
(发表于2003-7-21 17:42:00)
![](image/doc.gif)
VC70新手:居然不用shell?
(发表于2004-1-11 4:11:00)
![](image/doc.gif)
benny_pan1980:thank you very much~~~~~~~~
(发表于2005-5-22 11:32:00)
..........................................................................
--------------------next---------------------