void CDlgClientParam::OnBtnSetsavepath()
{
UpdateData();
LPCTSTR lpszTitle = _T( "Select the root folder for the browse dialog:" );
UINT uFlags = BIF_RETURNONLYFSDIRS | BIF_USENEWUI;
CFolderDialog dlgSelectPath( lpszTitle, m_strSavePath, this, uFlags );
CString m_strSavePath;
if( dlgSelectPath.DoModal() == IDOK )
{
m_strSavePath = dlgSelectPath.GetFolderPath();
UpdateData( FALSE );
}
}
转载于:https://www.cnblogs.com/enterBeijingThreetimes/archive/2008/11/26/1341641.html