void CAfficheMesPol::OnVisualisationChoixdunfichierdepolytopes() { BYTE NbPar=PolyMc.NPAR; CPolyMc test; CFileDialog * FileData = new CFileDialog (TRUE,"*.pmc",NomFichierPol,OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,"Polytopes multi-classes (*.pmc)|*.pmc||",this); if(FileData->DoModal()==IDOK) { test.LirePol(FileData->GetPathName()); test.Fin(); if(PolyMc.NPAR!=test.NPAR||PolyMc.NbClass!=test.NbClass) { MessageBox("Fichier polytope incompatible!","Erreur!",MB_OK|MB_ICONSTOP); ValidPol=FALSE; Visu=FALSE; } else { ValidPol=TRUE; NomFichierPol=FileData->GetPathName(); PolyMc.Fin(); ValidPol=PolyMc.LirePol(NomFichierPol); } } Invalidate(TRUE); delete FileData; }
//**************************************************************************************** void CFileItem::OnClickButton (CPoint /*point*/) { CBCGPGridCtrl* pGridCtrl = GetOwnerList(); m_bButtonIsDown = TRUE; Redraw (); CString strPath = (LPCTSTR)(_bstr_t)m_varValue; CFileDialog dlg (TRUE, strPath); if (dlg.DoModal () == IDOK) { strPath = dlg.GetPathName (); m_varValue = (LPCTSTR) strPath; } m_bButtonIsDown = FALSE; Redraw (); if (m_pWndInPlace != NULL) { m_pWndInPlace->SetWindowText (strPath); m_pWndInPlace->SetFocus (); } else { pGridCtrl->SetFocus (); } }
void CEditorView::OnPopupLoad() { // TODO: Add your command handler code here BOOL endmarker; CString FileName; CString WindowText; CString WindowLine; static char BASED_CODE szFilter[] = "Text Files (*.txt)|*.txt|Data Files (*.dat)|*.dat|All Files (*.*)|*.*||"; CFileDialog* pLoadFile = new CFileDialog(TRUE,NULL,NULL,0,&szFilter[0],NULL); if (IDOK==pLoadFile->DoModal()) { WindowText = ""; FileName = pLoadFile->GetPathName(); delete pLoadFile; CStdioFile* pFile = new CStdioFile(FileName,CFile::modeRead); do { endmarker = pFile->ReadString(WindowLine); WindowText = WindowText+WindowLine+"\r\n"; } while (endmarker); GetEditCtrl().SetSel(-1,0,FALSE); GetEditCtrl().ReplaceSel(WindowText); pFile->Close(); delete pFile; } }
void CCompactDataBase::OnFileName() // OK { // TODO: Add your control notification handler code here CString strExt, strFilter, strCaption; if (!strExt.LoadString (IDS_DATABASE_EXTENSION) || !strCaption.LoadString (IDS_COMPACT_CAPTION) || !strFilter.LoadString (IDS_MDB_FILTER)) AfxThrowResourceException (); DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT; // voreingest. CFileDialog Dlg (FALSE, strExt, NULL, dwFlags, strFilter, this); Dlg.m_ofn.lpstrInitialDir = m_strDir; Dlg.m_ofn.lpstrTitle = strCaption; if (IDOK == Dlg.DoModal ()) { CString strNewDatabase; strNewDatabase = Dlg.GetPathName (); if (0 != m_strOldDatabase.CompareNoCase (strNewDatabase)) { strNewDatabase.MakeUpper (); m_edFileName.SetWindowText (strNewDatabase); } else // Namen müssen verschieden sein --> Meldung an Nutzer { CGakApp *pApp = (CGakApp *) AfxGetApp (); ASSERT (pApp != NULL); ASSERT_VALID (pApp); pApp -> OutputMessage (IDS_DIFF_DATABASE); } } }
///////////////////////////////////////////////////////////////////////////// // CCmdGF message handlers void CCmdGF::OnGfExt() { UpdateData(TRUE); CMainFrame* main; main=(CMainFrame*)AfxGetMainWnd(); CFRTK* face = &((CSoftComputingWndDoc*)main->GetActiveDocument())->m_frtk; IPLIMAGE image = ((CSoftComputingWndDoc*)main->GetActiveDocument())->m_image; CFileDialog *pDlg = new CFileDialog( TRUE, NULL, NULL, OFN_READONLY, "얼굴모델 *.dat|*.dat|모든파일 *.*|*.*|", NULL ); if (pDlg->DoModal()) { CString filename = pDlg->GetFileName(); if (filename != "") { CFRTKface facecomp; facecomp.load(filename); face->FRTKgeofeat(image, NULL, m_source, m_result, facecomp); } } }
void CRossScheme::OnBnClickedSaveToFiles() { CFileDialog D (FALSE, 0,"D_", OFN_NOVALIDATE); if (!D.DoModal()) return; string Path = GetPathByFile((const char*)D.GetPathName()); size_t i=0; for (; i<GetRoss()->m_Domens.size(); i++) { const CDomen& D = GetRoss()->m_Domens[i]; if (D.IsFree) continue; string FileName = Path + (const char*)D.DomStr + string(".txt"); FILE* fp = fopen (FileName.c_str(), "w"); for (size_t k = 0; k < D.m_ItemsLength; k++) fprintf (fp, "%s\n", (const char*)D.m_Items[k]); fclose(fp); }; if (::MessageBox(m_hWnd, "Export of metaconstants was finished! Delete all meta constants?" , "Question",MB_YESNO) == IDNO) return; for (int k = GetRoss()->m_Domens.size()-1; k>=0; k--) { const CDomen& D = GetRoss()->m_Domens[GetRoss()->GetDomItemDomNo(k)]; if (D.IsFree) continue; GetRoss()->DelDomItem(k); }; m_pRossDoc->SetModifiedFlag(TRUE); }
void CChildView::OnFileSave() { CFileDialog* fd = new CFileDialog(false, _T("jfd"), _T("*.jfd")); wstring fileName; fd->m_ofn.lpstrTitle = TEXT("Save file"); fd->m_ofn.lpstrFilter = TEXT("JFDraw Files (*.jfd)"); if (fd->DoModal() == IDOK) { fileName = fd->GetPathName(); ofstream file; file.open(fileName); if (m_Shapes.empty() == false) { for (auto i : m_Shapes) { file << i->ToString(); } } file.close(); delete fd; } }
void CMEADialog::OnBnClickedPartition() { //Get the name of the partition function save file and post it to the view //Open the standard dialog to pick a sequence char *ctname; short int i; CFileDialog *filedialog; filedialog = new CFileDialog(TRUE,NULL,"",OFN_FILEMUSTEXIST|OFN_HIDEREADONLY, "Partition Function Save Files (*.pfs)|*.pfs||"); filedialog->m_ofn.lpstrInitialDir=GetFoldDocument()->startpath; if (filedialog->DoModal()==IDOK) { //strcpy(m_sequencename.GetBuffer(10),(filedialog->GetPathName()).GetBuffer(0)); m_SEQUENCE=(filedialog->GetPathName()).GetBuffer(30); i = m_SEQUENCE.GetLength(); ctname = new char[i+4];//allocate enough space so that //three characters can be added //to the name if necessary strcpy(ctname,m_SEQUENCE.GetBuffer(10)); //count the characters to the . while(i>=0){ if (ctname[i]=='.') break; i--; } if (i==0) i = m_SEQUENCE.GetLength(); strcpy(ctname+i+1,"ct\0"); m_CT=ctname; delete[] ctname;//fix this? UpdateData(FALSE); //now store the path in Startpath so that the program can start here next time: //_getcwd(GetFoldDocument()->startpath,_MAX_PATH); //now store the path in Startpath so that the program can start here next time: //_getcwd(GetFoldDocument()->startpath,_MAX_PATH); CString path; path = filedialog->GetPathName(); i = path.GetLength(); while(i>=0){ if (path[i]=='\\') break; i--; } if (i>_MAX_PATH) i = _MAX_PATH; strncpy(GetFoldDocument()->startpath,path.GetBuffer(1),i); *(GetFoldDocument()->startpath + i) ='\0'; } delete filedialog; }
void CSub::OnButtonChooseProgram() { CFileDialog *fd = new CFileDialog(TRUE, "zap", NULL, OFN_HIDEREADONLY | OFN_NOCHANGEDIR , "Zap! Files (*.zap)|*.zap||", this); CString DefaultPath = ((CFlowZap*)m_fc)->GetDefaultZapDirectory(); fd->m_ofn.lpstrInitialDir = DefaultPath; int response = fd->DoModal(); if (response == IDOK) { m_NameOfFile = fd->GetPathName(); CString filename = GetFileNameFromPath(m_NameOfFile); m_ChooseProgram.SetWindowText("[" + filename + "]"); CFlowZap *fc = (CFlowZap*)m_fc; fc->ChangeMadeInFile(); m_tooltip.AddTool(GetDlgItem(IDC_CHOOSEPROGRAM), m_NameOfFile); } delete fd; fd = NULL; }
void CMotionsDlg::OnBrowsemotion() { CFileDialog *FileDlg = MyFileDialog_Create ( TRUE, IDS_MOTIONFILEPROMPT, IDS_MOTFILEEXT, IDS_MOTFILEFILTER, m_MotionFilename, OFN_NOCHANGEDIR | OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST, this ); if (FileDlg != NULL) { if (FileDlg->DoModal () == IDOK) { char NewMotionName[MAX_PATH]; SetModifiedFlag (true); strcpy (NewMotionName, m_MotionFilename); if (MakeHelp_GetRelativePath (m_Project, FileDlg->GetPathName (), NewMotionName)) { m_MotionFilename = NewMotionName; SetMotionTypeFromFilename (); m_FilenameChanged = false; } UpdateData (FALSE); } delete FileDlg; } else { AfxMessageBox (IDS_OUTOFMEMORY); } }
BOOL CGeorgesEditDocForm::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; // User mode ? if (theApp.Superuser) { // Choose a DFN for this form string defFilename = theApp.RootSearchPath; defFilename += "*.dfn"; CFileDialog dlgFile (TRUE, "*.dfn", defFilename.c_str (), OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, DfnFilter, theApp.m_pMainWnd); if (dlgFile.DoModal () == IDOK) { if (initDocument (dlgFile.GetFileName (), true)) return TRUE; } } else { // Get the Dfn name CMyMultiDocTemplate *docTemplate = safe_cast<CMyMultiDocTemplate*> (GetDocTemplate ()); string dfnName; docTemplate->getDfnName (dfnName); if (initDocument (dfnName.c_str (), true)) return TRUE; } return FALSE; }
void CDlg_ImportNetwork::OnBnClickedExportData() { CString m_CSV_FileName; CFileDialog dlg (FALSE, "*.csv", "*.csv",OFN_HIDEREADONLY | OFN_NOREADONLYRETURN | OFN_LONGNAMES, "(*.csv)|*.csv||", NULL); if(dlg.DoModal() == IDOK) { FILE* st; fopen_s(&st,dlg.GetPathName(),"w"); if(st!=NULL) { for(int i=0; i< m_MessageList.GetCount (); i++) // if one of "all" options is selected, we need to narrow down to OD pair { char m_Text[200]; m_MessageList.GetText (i, m_Text); fprintf(st,"%s\n",m_Text); } fclose(st); }else { CString str; str.Format("The file %s could not be opened.\nPlease check if it is opened by Excel.", dlg.GetPathName()); AfxMessageBox(str); } m_pDoc->OpenCSVFileInExcel (dlg.GetPathName()); } }
void CRossScheme::OnBnClickedLoadConstFromFiles() { CFileDialog D (TRUE, 0,"D_", OFN_NOVALIDATE); if (!D.DoModal()) return; string Path = GetPathByFile((const char*)D.GetPathName()); if (Path.empty()) return; for (size_t i=0; i<GetRoss()->m_Domens.size(); i++) { const CDomen& D = GetRoss()->m_Domens[i]; if (D.IsFree) continue; string FileName = Path + (const char*)D.DomStr + string(".txt"); FILE* fp = fopen (FileName.c_str(), "r"); if (!fp) continue; char buffer[100]; while (fgets(buffer, 100, fp)) { string q = buffer; Trim(q); int dummy; if (!GetRoss()->InsertDomItem(q.c_str(), i, dummy)) { ErrorMessage(GetRoss()->m_LastError); fclose(fp); return; } }; fclose(fp); }; m_pRossDoc->SetModifiedFlag(TRUE); }
void CProjectView::OnFileadd() { // Start in the project directory ((CProjectDoc*)GetDocument())->SetProject(); _TCHAR* FileBuffer = new _TCHAR[4096]; CFileDialog *pfileDlg = NULL; if (g_osrel >= 4) { pfileDlg = new CFileDialog(TRUE, NULL, NULL, OFN_HIDEREADONLY|OFN_OVERWRITEPROMPT|OFN_ALLOWMULTISELECT|OFN_EXPLORER, _T("Prolog Files (*.pro;*.plm)|*.pro;*.plm|All (*.*)|*.*||")); } else { pfileDlg = new CFileDialog(TRUE, NULL, NULL, OFN_HIDEREADONLY|OFN_OVERWRITEPROMPT|OFN_ALLOWMULTISELECT, _T("Prolog Files (*.pro;*.plm)|*.pro;*.plm|All (*.*)|*.*||")); } pfileDlg->m_ofn.lpstrFile = FileBuffer; FileBuffer[0] = EOS; // Note, must do this or W95 flags as error pfileDlg->m_ofn.nMaxFile = 4096; if (pfileDlg->DoModal() != IDOK) { //_TCHAR errbuf[512]; //wsprintf(errbuf, _T("FileDialog error: %d"), CommDlgExtendedError()); //AfxMessageBox(errbuf); delete pfileDlg; return; } CListBox* pLB = (CListBox*)GetDlgItem(IDP_FILELIST); // Loop through all the files to be added. If they are in the project // directory or below, just put in the relative path. POSITION pos = pfileDlg->GetStartPosition(); CString dir(m_directory), path, upath; dir.MakeUpper(); int i, idx; while (pos != NULL) { path = pfileDlg->GetNextPathName(pos); upath = path; upath.MakeUpper(); if (dir.Right(1) != _T("\\")) dir = dir + _T("\\"); i = upath.Find(dir); if (i >= 0) path = path.Mid(i+dir.GetLength()); idx = pLB->AddString(path); update_scroll(pLB, path); } delete FileBuffer; delete pfileDlg; ((CProjectDoc*)GetDocument())->SetProject(); }
void DlgQryHiSet::OnClkSave2file() { CString strFilter = _T("文本文件(*.log;*.txt)|(*.*;*.log;*.txt;)|所有文件 |*.*||"); CFileDialog* dlgSave = new CFileDialog(false, _T("*.txt"), GenDef(_T("结算单"),_T("txt")), OFN_PATHMUSTEXIST | OFN_EXPLORER, strFilter, this); dlgSave->m_ofn.lStructSize=sizeof(OPENFILENAME); //use the 2k+ open file dialog CString szFile; if (IDOK == dlgSave->DoModal()) { szFile = dlgSave->GetPathName(); CFile fLog(szFile, CFile::modeReadWrite | CFile::modeCreate | CFile::typeText); UpdateData(TRUE); int iLen = m_szHiSet.GetLength(); char* szLog = new char[4*iLen]; uni2ansi(CP_UTF8,(LPTSTR)(LPCTSTR)m_szHiSet,szLog); BYTE bBom[3]={0xEF,0xBB,0xBF}; fLog.Write(&bBom,3); fLog.Write(szLog,strlen(szLog)); fLog.Close(); DELX(szLog); } DELX(dlgSave); }
void CdllsDlg::OnBnClickedSave() { TCHAR app_path_buf[PATH_LEN]; memset(app_path_buf,0,sizeof(app_path_buf)); GetModuleFileName(NULL, app_path_buf,sizeof(app_path_buf)/sizeof(app_path_buf[0])); int pathlen = _tcslen(app_path_buf); int i = pathlen-1; while(i>0) { if(app_path_buf[i]==_T('\\') ) { app_path_buf[i+1] = 0; break; } i--; } TCHAR szFilters[] =_T("Text Files (*.txt)\0*.txt\0") _T("All Files (*.*)\0*.*\0"); CFileDialog fdlg (FALSE, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT | OFN_PATHMUSTEXIST |OFN_EXPLORER, szFilters, AfxGetMainWnd()); //CFileDialog ofdlg(FALSE); fdlg.m_ofn.lpstrFilter = szFilters; //CFileDialog fdlg(FALSE,_T(".txt"),_T("dlllist.txt")); fdlg.m_ofn.lpstrInitialDir =app_path_buf; if(IDOK!=fdlg.DoModal()) return; std::basic_string<TCHAR> savepathname = fdlg.m_ofn.lpstrFile; if(1==fdlg.m_ofn.nFilterIndex && !end_with(savepathname,_T(".txt"),true) ) { savepathname += _T(".txt"); } std::basic_fstream<TCHAR> ofile; ofile.open( (LPCSTR)_bstr_t(savepathname.c_str()),std::ios_base::out|std::ios_base::trunc); HWND hwndListView =GetDlgItem(IDC_LVW)->m_hWnd; int rows = 0; rows = ListView_GetItemCount(hwndListView); int cols = 0; HWND headerwnd = ListView_GetHeader(hwndListView); cols = Header_GetItemCount(headerwnd); for(int i=0;i<rows;i++) { for(int j=0;j<cols;j++) { app_path_buf[0] = 0; ListView_GetItemText(hwndListView,i,j,app_path_buf,ARRAY_SIZE(app_path_buf)); if(j<cols-1) ofile<<app_path_buf<<_T(" "); else { ofile<<app_path_buf<<(char)0xd<<(char)0xa; } } } ofile.close(); }
void CTorrents_Tasks::OnBtdldAddfromfile() { CString str; str.Format ("%s (*.torrent)|*.torrent||", LS (L_TORRENT_FILES)); CFileDialog dlg (TRUE, "torrent", NULL, OFN_HIDEREADONLY|OFN_NOCHANGEDIR, str, this); if (dlg.DoModal () != IDOK) return; CString strUrl = "file://"; strUrl += dlg.GetPathName (); _pwndDownloads->CreateBtDownloadFromFile (dlg.GetPathName (), strUrl, FALSE); }
void CDfuFileMgrDlg::OnButtongenerate() { HANDLE hFile; TCHAR szFilters[]= "Dfu Files (*.dfu)|*.dfu|All Files (*.*)|*.*||"; WORD Vid, Pid, Bcd; CFileDialog* dlg; dlg = new CFileDialog(FALSE, _T("dfu"), _T("*.dfu"), OFN_CREATEPROMPT |OFN_PATHMUSTEXIST |OFN_OVERWRITEPROMPT, szFilters, this); UpdateData(TRUE); if (m_Vid.IsEmpty() || m_Pid.IsEmpty() || m_Bcd.IsEmpty() ) { AfxMessageBox("One of following element is empty. Please fill before continuing...\r\nVID, PID or Bcd Version"); return; } else if(m_Images.GetSize() == 0) { AfxMessageBox("Image list is empty. Please select an S19, Hex or bin file"); return; } if (dlg->DoModal()==IDOK) { char *dummy; Vid=(WORD)strtoul(m_Vid, &dummy, 16); Pid=(WORD)strtoul(m_Pid, &dummy, 16); Bcd=(WORD)strtoul(m_Bcd, &dummy, 16); if (STDFUFILES_CreateNewDFUFile((LPSTR)(LPCSTR)dlg->GetFileName(), &hFile, Vid, Pid, Bcd)==STDFUFILES_NOERROR) { for (int i=0;i<m_Images.GetSize();i++) { CString Tmp, Tmp1; HANDLE Image=(HANDLE)m_Images.GetAt(i); m_ListFiles.GetText(i, Tmp1); if (STDFUFILES_AppendImageToDFUFile(hFile, Image)==STDFUFILES_NOERROR) { Tmp.Format("Success for '%s' !",Tmp1); AfxMessageBox(Tmp); } else { Tmp.Format("Failure for '%s'...", Tmp1); AfxMessageBox(Tmp); } } STDFUFILES_CloseDFUFile(hFile); } } UpdateData(FALSE); }
void CDlg_Customizer::OnBrowse() { CFileDialog dlg (TRUE, NULL, m_strIcon, OFN_HIDEREADONLY|OFN_NOCHANGEDIR, "Files with icons (*.ico)|*.ico|All files (*.*)|*.*||", this); if (dlg.DoModal () == IDOK) { m_strIcon = dlg.GetPathName (); SetDlgItemText (IDC_FILE, m_strIcon); } }
void CApplicationRuleDlg::OnBrowseApp() { CFileDialog fd (TRUE, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, _T("Executable (*.exe; *.com)|*.exe; *.com|All files (*.*)|*.*||"), this); if (fd.DoModal () == IDOK) { m_AppPath = fd.GetPathName (); SetDlgItemText (IDC_AppPath, m_AppPath); } }
void CDlg_VehicleClassification::OnBnClickedExportData() { CFileDialog dlg (FALSE, "*.csv", "*.csv",OFN_HIDEREADONLY | OFN_NOREADONLYRETURN | OFN_LONGNAMES, "Data File (*.csv)|*.csv||", NULL); if(dlg.DoModal() == IDOK) { ExportData(dlg.GetPathName ()); } m_pDoc->OpenCSVFileInExcel(dlg.GetPathName ()); }
void CTestLocalDialog::OnSave() { CFileDialog dialog (FALSE); if (dialog.DoModal () == IDOK) { string name = (const char*)dialog.GetPathName (); COFile file (name.c_str ()); Plugin->Document->getForm ()->write (file, true); } }
void CScriptDlg::OnSave() { char openFilters[]= "Python Files (*.py)|*.py|All Files (*.*)|*.*||"; // Load selector CFileDialog pdlg (FALSE, "Python Files (*.py)", "*.py", OFN_FILEMUSTEXIST, openFilters); if (pdlg.DoModal() == IDOK) m_Script.SaveFile(pdlg.GetPathName()); }
BOOL WINAPI gsGetSaveFileName(LPOPENFILENAME pofn) { if (!CheckPointer(pofn)) return FALSE; CFileDialog* pDlg = new CFileDialog(pofn); BOOL fRet = pDlg->DoModal(TRUE) == IDOK; delete pDlg; return fRet; }
void CInv3DDoc::OnModelImportAppend() { CFileDialog fileDlg (TRUE, _T(""), _T("*.*"), OFN_HIDEREADONLY, _T("")); OPENFILENAME& ofn = fileDlg.GetOFN(); CString strDlg("Append model"); ofn.lpstrTitle = strDlg; if( fileDlg.DoModal() == IDOK ) { CString strFilePath = fileDlg.GetPathName(); ImportModel(strFilePath, TRUE); } }
void CEasyToonApp::OnFileOpen() { /*this->*/ static char szFilter[] = "EasyToon Files (*.ezt)|*.ezt|GIF Files (*.gif)|*.gif|All Files (*.*)|*.*||"; CFileDialog fileDlg ( true, "gif", NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT | OFN_ENABLEHOOK, szFilter); if ( fileDlg.DoModal() == IDOK ) this->OpenDocumentFile(fileDlg.GetFileName()); /*CWinApp::OnFileOpen();*/ }
void CExtractData::Open(LPTSTR pOpenDir) { std::vector<TCHAR> szFileNames(MAX_PATH * 1000, 0); CFileDialog clFileDlg; if (clFileDlg.DoModal(m_hParentWnd, &szFileNames[0], pOpenDir)) { Mount(&szFileNames[0]); } }
//************************************************************************** void CBCGPToolsPage::OnBcgbarresBrowseCommand() { CFileDialog dlg (TRUE, g_pUserToolsManager->GetDefExt (), NULL, 0, g_pUserToolsManager->GetFilter (), this); if (dlg.DoModal () == IDOK) { m_strCommand = dlg.GetPathName (); UpdateData (FALSE); OnUpdateTool(); } }
void CDlg_GISDataExchange::OnBnClickedExportGisShapeFile() { m_MessageList.ResetContent (); CString m_CSV_FileName; CFileDialog dlg (FALSE, "*.shp", "*.shp",OFN_HIDEREADONLY | OFN_NOREADONLYRETURN | OFN_LONGNAMES, "(*.shp)|*.shp||", NULL); if(dlg.DoModal() == IDOK) { m_GIS_data_type = (_GIS_DATA_TYPE)(m_GISDataType_List.GetCurSel ()); ExportToGISFile(m_CSV_File,dlg.GetPathName(), "ESRI Shapefile"); } }
void CBackgndImageDlg::OnBrowse() { CFileDialog dlg (TRUE, _T("bmp"), m_strFilePath, OFN_HIDEREADONLY, _T("Bitmap Files (*.bmp)|*.bmp|All Files (*.*)|*.*||"), this); if (dlg.DoModal () == IDOK) { m_strFilePath = dlg.GetPathName (); UpdateData (FALSE); UpdateBitmap (); } }