MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / OnFileOpen

Method OnFileOpen

DebugView++/MainFrame.cpp:921–937  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

919}
920
921void CMainFrame::OnFileOpen(UINT /*uNotifyCode*/, int /*nID*/, CWindow /*wndCtl*/)
922{
923 CFileOptionDlg dlg(true, L"Keep file open", L".dblog", m_logFileName.c_str(), OFN_FILEMUSTEXIST,
924 L"DebugView++ Log Files (*.dblog)\0*.dblog\0"
925 L"DebugView Log Files (*.log)\0*.log\0"
926 L"All Files (*.*)\0*.*\0\0",
927 0);
928 dlg.m_ofn.nFilterIndex = 0;
929 dlg.m_ofn.lpstrTitle = L"Load Log File";
930 if (dlg.DoModal() == IDOK)
931 {
932 if (dlg.Option())
933 LoadAsync(dlg.m_szFileName);
934 else
935 Load(std::wstring(dlg.m_szFileName));
936 }
937}
938
939void CMainFrame::Run(const std::wstring& pathName)
940{

Callers

nothing calls this directly

Calls 2

OptionMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected