| 919 | } |
| 920 | |
| 921 | void 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 | |
| 939 | void CMainFrame::Run(const std::wstring& pathName) |
| 940 | { |