From c0dd56e5e27e39d0d7859436f0f93a704b2684f9 Mon Sep 17 00:00:00 2001 From: amate Date: Sun, 7 Feb 2016 08:15:17 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=BB=E3=83=AD=E3=82=B0=E3=82=A6=E3=82=A3?= =?UTF-8?q?=E3=83=B3=E3=83=89=E3=82=A6=E3=82=92=E9=96=89=E3=81=98=E3=82=8B?= =?UTF-8?q?=E3=81=A8=E9=96=8B=E3=81=91=E3=81=AA=E3=81=84=E3=83=90=E3=82=B0?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Proxydomo/AppConst.h | 2 +- Proxydomo/LogViewWindow.cpp | 5 ----- Proxydomo/LogViewWindow.h | 13 ++++++++++--- Proxydomo/MainDlg.cpp | 2 +- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Proxydomo/AppConst.h b/Proxydomo/AppConst.h index 1f83a62..ec693a5 100644 --- a/Proxydomo/AppConst.h +++ b/Proxydomo/AppConst.h @@ -39,7 +39,7 @@ #endif /// アプリケーションのバージョン -#define APP_VERSION _T("1.80") +#define APP_VERSION _T("1.80.1") diff --git a/Proxydomo/LogViewWindow.cpp b/Proxydomo/LogViewWindow.cpp index 673df34..b2719a8 100644 --- a/Proxydomo/LogViewWindow.cpp +++ b/Proxydomo/LogViewWindow.cpp @@ -481,11 +481,6 @@ BOOL CLogViewWindow::OnInitDialog(CWindow wndFocus, LPARAM lInitParam) return 0; } -void CLogViewWindow::OnClose() -{ - DestroyWindow(); -} - void CLogViewWindow::OnDestroy() { CLog::RemoveLogTrace(this); diff --git a/Proxydomo/LogViewWindow.h b/Proxydomo/LogViewWindow.h index ed45fc6..21c272e 100644 --- a/Proxydomo/LogViewWindow.h +++ b/Proxydomo/LogViewWindow.h @@ -45,7 +45,10 @@ class CLogViewWindow : public: enum { IDD = IDD_LOGVIEW }; - enum { WM_APPENDTEXT = WM_APP + 100 }; + enum { + WM_APPENDTEXT = WM_APP + 100, + WM_EXECDESTROYWINDOW = WM_APP + 101, + }; CLogViewWindow(); ~CLogViewWindow(); @@ -99,8 +102,8 @@ class CLogViewWindow : BEGIN_MSG_MAP_EX( CLogViewWindow ) MSG_WM_INITDIALOG( OnInitDialog ) - MSG_WM_CLOSE( OnClose ) MSG_WM_DESTROY( OnDestroy ) + MESSAGE_HANDLER_EX(WM_EXECDESTROYWINDOW, OnExecDestroyWindow) COMMAND_ID_HANDLER_EX( IDCANCEL, OnCancel ) COMMAND_ID_HANDLER_EX(IDC_BUTTON_CLEAR, OnClear) @@ -130,9 +133,13 @@ class CLogViewWindow : // void OnCommandIDHandlerEX(UINT uNotifyCode, int nID, CWindow wndCtl) BOOL OnInitDialog(CWindow wndFocus, LPARAM lInitParam); - void OnClose(); void OnDestroy(); + LRESULT OnExecDestroyWindow(UINT uMsg, WPARAM wParam, LPARAM lParam) { + DestroyWindow(); + return 0; + } + void OnCancel(UINT uNotifyCode, int nID, CWindow wndCtl); void OnClear(UINT uNotifyCode, int nID, CWindow wndCtl); void OnViewConnectionMonitor(UINT uNotifyCode, int nID, CWindow wndCtl); diff --git a/Proxydomo/MainDlg.cpp b/Proxydomo/MainDlg.cpp index 9f34c17..e8a24d6 100644 --- a/Proxydomo/MainDlg.cpp +++ b/Proxydomo/MainDlg.cpp @@ -196,7 +196,7 @@ LRESULT CMainDlg::OnDestroy(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, _SaveMainDlgWindowPos(); - m_logView.PostMessage(WM_CLOSE); + m_logView.PostMessage(CLogViewWindow::WM_EXECDESTROYWINDOW); m_threadLogView.join(); return 0;