Chinaunix首页 | 论坛 | 博客
  • 博客访问: 465759
  • 博文数量: 724
  • 博客积分: 40000
  • 博客等级: 大将
  • 技术积分: 5010
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-13 14:47
文章分类

全部博文(724)

文章存档

2011年(1)

2008年(723)

我的朋友

分类:

2008-10-13 17:07:37

proceedings:maybe use HTREEITEM as the parameter in BrowseFile
function.

good luck!
(发表于2003-4-2 20:35:00)

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)

lsjpyx:谢谢楼上各位的帮忙!大二了,我们学校要考四级了,鄙人最近不得不忍痛割爱,去忙于准备四级,谢谢大家给我的补充!!!!!!
(发表于2003-4-9 12:51:00)

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)

VC70新手:居然不用shell?
(发表于2004-1-11 4:11:00)

benny_pan1980:thank you very much~~~~~~~~
(发表于2005-5-22 11:32:00)

..........................................................................
--------------------next---------------------

阅读(155) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~