// 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 打开对话框,选择文件
最新推荐文章于 2020-12-29 19:17:25 发布