有控件实现 硬盘目录树结构的吗?
就像:
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搞不定。
还请大家提提意见~~~
就像:
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搞不定。
还请大家提提意见~~~
详细用法见MSDN
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 够用了吧^_^
能给我也发一份吗?
[email protected]
多谢了
已经可以做到了。我的麻烦是,知道了文件名
确定path不方便。
树控件不是主要的。要是的是从控件到path的定位。
DirTreeCtrl - for displaying folders and files这个不行吗,既有Dialog也有View的,路径也能取得