MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / OnFileOpen

Method OnFileOpen

Source/FamiTracker.cpp:674–690  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

672// File load/save
673
674void CFamiTrackerApp::OnFileOpen()
675{
676 CStringW newName = L""; // // //
677
678 if (!AfxGetApp()->DoPromptFileName(newName, AFX_IDS_OPENFILE, OFN_HIDEREADONLY | OFN_FILEMUSTEXIST, TRUE, NULL))
679 return; // open cancelled
680
681 CFrameWnd *pFrameWnd = (CFrameWnd*)GetMainWnd();
682
683 if (pFrameWnd)
684 pFrameWnd->SetMessageText(IDS_LOADING_FILE);
685
686 AfxGetApp()->OpenDocumentFile(newName);
687
688 if (pFrameWnd)
689 pFrameWnd->SetMessageText(IDS_LOADING_DONE);
690}
691
692/**
693 * CFTCommandLineInfo, a custom command line parser

Callers

nothing calls this directly

Calls 1

DoPromptFileNameMethod · 0.80

Tested by

no test coverage detected