From 34e059269d3c8a5d999575efce347c116b7be52a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 23 Mar 2017 22:06:53 +0300 Subject: usual crutches sometimes don't work, we need the stronger ones --- src/core/stdmsg/src/chat_window.cpp | 2 ++ src/core/stdmsg/src/msgdialog.cpp | 2 ++ src/core/stdmsg/src/msgs.h | 1 + src/core/stdmsg/src/stdafx.h | 1 + 4 files changed, 6 insertions(+) (limited to 'src/core') diff --git a/src/core/stdmsg/src/chat_window.cpp b/src/core/stdmsg/src/chat_window.cpp index 24057875bc..3247b0ef98 100644 --- a/src/core/stdmsg/src/chat_window.cpp +++ b/src/core/stdmsg/src/chat_window.cpp @@ -142,6 +142,8 @@ void CChatRoomDlg::OnDestroy() DestroyWindow(m_hwndStatus); m_hwndStatus = nullptr; NotifyLocalWinEvent(m_hContact, m_hwnd, MSG_WINDOW_EVT_CLOSE); + + CSuper::OnDestroy(); } void CChatRoomDlg::onClick_Filter(CCtrlButton *pButton) diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index 506bd38cd3..fa99f057f7 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -357,6 +357,8 @@ void CSrmmWindow::OnDestroy() db_delete_contact(m_hContact); Window_FreeIcon_IcoLib(m_hwnd); + + CSuper::OnDestroy(); } ///////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/core/stdmsg/src/msgs.h b/src/core/stdmsg/src/msgs.h index e3dc7252f3..83bdc4f3d2 100644 --- a/src/core/stdmsg/src/msgs.h +++ b/src/core/stdmsg/src/msgs.h @@ -50,6 +50,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. class CSrmmWindow : public CSrmmBaseDialog { friend struct CTabbedWindow; + typedef CSrmmBaseDialog CSuper; static LRESULT CALLBACK TabSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); diff --git a/src/core/stdmsg/src/stdafx.h b/src/core/stdmsg/src/stdafx.h index 5ad8cfb5a5..c09f311e83 100644 --- a/src/core/stdmsg/src/stdafx.h +++ b/src/core/stdmsg/src/stdafx.h @@ -206,6 +206,7 @@ void TB_SaveSession(SESSION_INFO *si); class CChatRoomDlg : public CSrmmBaseDialog { + typedef CSrmmBaseDialog CSuper; friend struct CTabbedWindow; static INT_PTR CALLBACK FilterWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); -- cgit v1.2.3