有控件实现 硬盘目录树结构的吗?
就像:
C:
  WINNT
  Documents and Settings
  boot.ini
D:
  Program Files
E:
  mp3
F:
开始我是用shell实现的,
SHGetDesktopFolder(&m_pDesktopFolder);
pDesktopFolder.EnumObjects(*this, SHCONTF_FOLDERS|SHCONTF_NONFOLDERS,&pEnumIDList))
while (NOERROR == pEnumIDList->Next(1, &pidl, NULL))
{
   GetAttributesOf
}
可是得到了文件名以后,感觉再获取到Path搞不定。
还请大家提提意见~~~

解决方案 »

  1.   

    有类似的树控件类,如果你需要,告诉我Mail!
      

  2.   

    http://www.codeproject.com/treectrl/shelltreectrl.asp
      

  3.   

    给我发邮件,我给你个完整的shell的例子。[email protected]
      

  4.   

    你用SHGetPathFromIDList试一下吧。
    详细用法见MSDN
      

  5.   

    http://www.vccode.com/file_show.php?id=868
    DirTreeCtrl - for displaying folders and fileshttp://www.vccode.com/file_show.php?id=327
    Drive Explorer http://www.vccode.com/file_show.php?id=31
    CShellTreeCtrl 够用了吧^_^
      

  6.   

    vcleaner(我没做大哥已经很久了.......)好强啊
    能给我也发一份吗?
    [email protected]
    多谢了
      

  7.   

    http://www.codeproject.com/treectrl/shelltreectrl.asp
    已经可以做到了。我的麻烦是,知道了文件名
    确定path不方便。
    树控件不是主要的。要是的是从控件到path的定位。
      

  8.   

    http://www.vccode.com/file_show.php?id=868
    DirTreeCtrl - for displaying folders and files这个不行吗,既有Dialog也有View的,路径也能取得
      

  9.   

    SHGetPathFromIDList哎,没在msdn里面仔细看一下。 谢谢了。 收工