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 );
    }
}

相关文章: