// =================================================================== void CAnimationCreateDlg::SelectExportDir() { BROWSEINFO bBinfo; memset(&bBinfo,0,sizeof(BROWSEINFO)); bBinfo.hwndOwner = NULL; bBinfo.lpszTitle= "请选择要导出路径"; bBinfo.ulFlags = BIF_RETURNONLYFSDIRS; bBinfo.lParam = (LPARAM)(LPCTSTR)m_sDstDir; LPITEMIDLIST lpDlist; lpDlist=SHBrowseForFolder(&bBinfo); char strTmp[255] = {0}; if(lpDlist!=NULL) { SHGetPathFromIDList(lpDlist,strTmp); m_sDstDir = strTmp; } SaveRecord(); }