请问各位网友,在vc++6.0中“选择路径“对话框是怎样实现的。其位置在file->new中,click“位置“或"location“后面的...按钮,探出的对话框就是“选择路径“对话框。我想是使用了某个mfc类,大家知道这个对话框是怎样实现的吗?立即给分。
解决方案 »
- 编写一个函数,可以将x和y数组中的点连接成线,画出来,并且有坐标轴?
- 请教,SDK和DLL是什么关系呢?
- 郁闷,忙乎了半天,发现我的问题和分辩率有关
- 使用BCG遇到的奇怪问题,在工具栏上加控件本是一件很平常的事情,但是在我的CMainFrame继承了CBCGPMDIFrameWnd以后,却是面目全非啊!高
- 我“偷”了别人工具栏的位图。我怎样才能够用这个位图做一个与他一样的工具栏呢?
- 用Winexec 调用其他进程,想知道这个进程何时关闭的 ,如何实现?
- 如何让网格显示出来?
- 用CByteArray但是最先不调用SetSize()函数,会产生什么问题?
- 如何在对话框中把CTabCtrl控件放在CStatic控件上面,不让CStatic控件覆盖CTabCtrl控件
- 目标物体三维重建 离散提取边缘坐标问题
- 怎样用VC访问活动目录
- 我想做一个简单的绘图程序有谁可以帮我?
Displays a dialog box that enables the user to select a Shell folder.
LPITEMIDLIST SHBrowseForFolder(
LPBROWSEINFO lpbi
);
FileDlg.Domodal();
Displays a dialog box that enables the user to select a Shell folder.
LPITEMIDLIST SHBrowseForFolder(
LPBROWSEINFO lpbi
);
Displays a dialog box that enables the user to select a Shell folder.
LPITEMIDLIST SHBrowseForFolder(
LPBROWSEINFO lpbi
);
TCHAR szPath[MAX_PATH]; // 显示一个选择路径的对话框
LPITEMIDLIST pitem;
BROWSEINFO info;
::ZeroMemory(&info,sizeof(info));
info.hwndOwner=this->m_hWnd;
info.lpszTitle=_T("选择需要批处理的文件夹:");
info.ulFlags=BIF_EDITBOX; if(pitem=::SHBrowseForFolder(&info)) {
::SHGetPathFromIDList(pitem,szPath);
m_szPath=szPath;
UpdateData(FALSE);
}
}
LPMALLOC pMalloc;
SHGetMalloc(&pMalloc);
BROWSEINFO bi;
int i = 0;
LPITEMIDLIST pidlBrowse; // PIDL selected by user // Fill in the BROWSEINFO structure.
bi.hwndOwner = m_hWnd;
bi.pidlRoot = NULL;
bi.pszDisplayName = lpBuffer;
bi.lpszTitle = "选择HTML文件存放的目录";
bi.ulFlags = 0;
bi.lpfn = NULL;
bi.lParam = 0;
// Browse for a folder and return its PIDL.
pidlBrowse = SHBrowseForFolder(&bi);
if (pidlBrowse != NULL)
{
// Show the display name, title, and file system path.
if (SHGetPathFromIDList(pidlBrowse, lpBuffer))
// do something .... // Free the PIDL returned by SHBrowseForFolder.
pMalloc->Free(pidlBrowse);
}
LPMALLOC pMalloc;
SHGetMalloc(&pMalloc);
BROWSEINFO bi;
int i = 0;
LPITEMIDLIST pidlBrowse; // PIDL selected by user // Fill in the BROWSEINFO structure.
bi.hwndOwner = m_hWnd;
bi.pidlRoot = NULL;
bi.pszDisplayName = lpBuffer;
bi.lpszTitle = "选择HTML文件存放的目录";
bi.ulFlags = 0;
bi.lpfn = NULL;
bi.lParam = 0;
// Browse for a folder and return its PIDL.
pidlBrowse = SHBrowseForFolder(&bi);
if (pidlBrowse != NULL)
{
// Show the display name, title, and file system path.
if (SHGetPathFromIDList(pidlBrowse, lpBuffer))
// do something .... // Free the PIDL returned by SHBrowseForFolder.
pMalloc->Free(pidlBrowse);
}
LPMALLOC pMalloc;
SHGetMalloc(&pMalloc);
BROWSEINFO bi;
int i = 0;
LPITEMIDLIST pidlBrowse; // PIDL selected by user // Fill in the BROWSEINFO structure.
bi.hwndOwner = m_hWnd;
bi.pidlRoot = NULL;
bi.pszDisplayName = lpBuffer;
bi.lpszTitle = "选择HTML文件存放的目录";
bi.ulFlags = 0;
bi.lpfn = NULL;
bi.lParam = 0;
// Browse for a folder and return its PIDL.
pidlBrowse = SHBrowseForFolder(&bi);
if (pidlBrowse != NULL)
{
// Show the display name, title, and file system path.
if (SHGetPathFromIDList(pidlBrowse, lpBuffer))
// do something .... // Free the PIDL returned by SHBrowseForFolder.
pMalloc->Free(pidlBrowse);
}