如何在对话框中实现路径的选择功能 如题,谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以用CFileDialog选择一个路径 char path[500]; BROWSEINFO br; ITEMIDLIST *item; br.hwndOwner = this->GetSafeHwnd(); br.iImage = 0; br.pszDisplayName = 0; br.lParam = 0; br.lpfn = 0; br.lpszTitle = "请选择路径:"; br.pidlRoot = 0; br.ulFlags = BIF_RETURNONLYFSDIRS; item = SHBrowseForFolder(&br); if (SHGetPathFromIDList(item,path)==TRUE) { MessageBox(path); } http://www.codeproject.com/dialog/selectfolder.asp以上是打开通用对话框方式选择目录 我给你一个类http://248314.tomore.com/ (选择“路径选择类演示 ”) 求助:怎么使得MDI的面板上的一个按钮变灰色 打开对话框问题 new、GlobalAlloc、LocalAlloc有什么区别吗 两个CAsyncsocket的问题 怎样在非模式属性单中响应其数据的变化 笨笨的初学问题:stdafx.h干什么用?能否不用include直接拷贝代码? "User breakpoint called from code at 0x77f9f9df"这是什么样一个问题? 如何实现缓存写入数据正确 如何改变程序主框架的颜色? lhxx请进>>>> SOS,各位高手帮帮忙啊!!! atl中的settimer
BROWSEINFO br;
ITEMIDLIST *item;
br.hwndOwner = this->GetSafeHwnd();
br.iImage = 0;
br.pszDisplayName = 0;
br.lParam = 0;
br.lpfn = 0;
br.lpszTitle = "请选择路径:";
br.pidlRoot = 0;
br.ulFlags = BIF_RETURNONLYFSDIRS;
item = SHBrowseForFolder(&br);
if (SHGetPathFromIDList(item,path)==TRUE)
{
MessageBox(path);
}
以上是打开通用对话框方式选择目录
http://248314.tomore.com/ (选择“路径选择类演示 ”)