void CMainFrame::OnFileSave() { // Bring up the file save dialog. CFile File; CString str = File.SaveFileDialog(0, 0, 0, 0, 0); // TODO: // Add your own code here. Refer to the tutorial for additional information }
void CMainFrame::OnFileSaveAs() { CFile File; CString str = File.SaveFileDialog(0, OFN_OVERWRITEPROMPT, _T("Scribble Files (*.dat)\0*.dat\0\0"), _T("dat"), this); // Store the PlotPoint data in the file if (!str.IsEmpty()) { m_PathName = str; // Save the file name m_View.FileSave(str); AddMRUEntry(str); } }