void CtestDlg::OnBnClickedLjButton()
{
// TODO: Add your control notification handler code here
CString FilePathName,filter;
filter="??(*.??)|*.??||*.*||(*)";
CFolderPickerDialog dlg(filter);
if (dlg.DoModal()==IDOK)
{
FilePathName = dlg.GetPathName();
m_FilePath = FilePathName;
UpdateData(FALSE);
}
}
如上代码如何修改可以实现在路径选择时候,把整个文件夹作为路径。