VC6.0使用向导获取路径
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 );
}
}
{
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 );
}
}