社区
界面
帖子详情
folder dialog
flyabovesun
2003-04-20 03:20:15
在MFC中有没有已经做好的对话框, 象CFileDialog一一样. 但只显示文件夹,返回文件夹路径,不显示文件?
...全文
126
3
打赏
收藏
folder dialog
在MFC中有没有已经做好的对话框, 象CFileDialog一一样. 但只显示文件夹,返回文件夹路径,不显示文件?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
qrlvls
2003-04-20
打赏
举报
回复
http://www.codeproject.com/dialog/searchfolders.asp
http://www.codeproject.com/dialog/selectfolder.asp
qrlvls
2003-04-20
打赏
举报
回复
http://www.codeproject.com/dialog/cfolderdialog.asp
feiniaoliang
2003-04-20
打赏
举报
回复
有啊!!但不象CFileDialog,可是也是对话框,不过完全可以满族你的需要了!!
LPITEMIDLIST lpItemIdList = NULL;
if ( ::SHGetSpecialFolderLocation(m_hWnd, CSIDL_DRIVES, &lpItemIdList) == NOERROR )
{
char szSelectPath[MAX_PATH];
BROWSEINFO binfo;
binfo.hwndOwner = m_hWnd;
binfo.pidlRoot = lpItemIdList;
binfo.pszDisplayName = szSelectPath;
binfo.lpszTitle = NULL;
binfo.ulFlags = BIF_RETURNONLYFSDIRS;
binfo.lpfn = NULL;
binfo.lParam = 0;
LPITEMIDLIST lpSelectedItemIdList = ::SHBrowseForFolder(&binfo);
}
if( lpSelectedItemIdList )
{
LPSHELLFOLDER lpshf;
HRESULT hRs = SHGetDesktopFolder(&lpshf);
if ( SUCCEEDED(hRs) )
{
_GetFolderName(lpshf, lpSelectedItemIdList, SHGDN_FORPARSING, szSelectPath);
lpshf->Release();
}
也就是浏览文件的对话框!!szSelectPath即为返回文件夹路径~~~~~~~~~呵呵!!
How to display the Browse for
Fold
er
dialog
How to display the Browse for
Fold
er
dialog
The windows ’Select
Fold
er
’
dialog
with some extra functio
The windows ’Select
Fold
er
’
dialog
with some extra functionality(41KB)
PE文件监控 PE Dropp
er
Monitor v1.4 绿色版.rar
when an item is selected Show numb
er
of items in the statusbar Select multiple items to copy them to clipboard Fixed crash in Windows Seven OS Update select
fold
er
dialog
Sort items on column click ...
This is an example of how to return all of the files on a us
This is an example of how to return all of the files on a us
er
s system. This can be easily edited to be close to the normal Windows’ Find File or
Fold
er
Dialog
.
其它控件VC源代码:
fold
er
_
dialog
其它控件源代码:
fold
er
_
dialog
关键字:
fold
er
_
dialog
,其它控件
界面
15,979
社区成员
115,897
社区内容
发帖
与我相关
我的任务
界面
VC/MFC 界面
复制链接
扫一扫
分享
社区描述
VC/MFC 界面
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章