// TODO: Add your control notification handler code here CFileDialog dlg( FALSE, _T("cat"), NULL, OFN_PATHMUSTEXIST | OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT | OFN_NOCHANGEDIR, _T("Catalog Data File (*.cat)|*.cat|||")); //Set Title dlg.m_ofn.lpstrTitle = _T("Assign a catalog data file name"); if(dlg.DoModal() != IDOK) { return; } else { if (theApp.m_CatalogDataBuilder.SaveCheckedDataToFile(dlg.GetPathName())) { AfxMessageBox(_T("Saved!"), MB_ICONINFORMATION); } }
MFC 打开对话框,选择文件
猜你喜欢
转载自jacky-dai.iteye.com/blog/2282258
今日推荐
周排行