From cc96ef0550815295a295fdd6e34c85af2f8f7340 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 21 Mar 2017 18:42:14 +0300 Subject: no need to export Srmm_ButtonSubclassProc anymore --- src/core/stdmsg/src/chat_window.cpp | 5 +---- src/core/stdmsg/src/msgdialog.cpp | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src/core') diff --git a/src/core/stdmsg/src/chat_window.cpp b/src/core/stdmsg/src/chat_window.cpp index bb721319a0..73816dc2ac 100644 --- a/src/core/stdmsg/src/chat_window.cpp +++ b/src/core/stdmsg/src/chat_window.cpp @@ -854,6 +854,7 @@ CChatRoomDlg::CChatRoomDlg(SESSION_INFO *si) : void CChatRoomDlg::OnInitDialog() { + CSrmmBaseDialog::OnInitDialog(); m_si->pDlg = this; SetWindowLongPtr(m_hwnd, GWLP_USERDATA, LPARAM(this)); @@ -867,10 +868,6 @@ void CChatRoomDlg::OnInitDialog() NotifyLocalWinEvent(m_hContact, m_hwnd, MSG_WINDOW_EVT_OPENING); - mir_subclassWindow(m_btnFilter.GetHwnd(), Srmm_ButtonSubclassProc); - mir_subclassWindow(m_btnColor.GetHwnd(), Srmm_ButtonSubclassProc); - mir_subclassWindow(m_btnBkColor.GetHwnd(), Srmm_ButtonSubclassProc); - mir_subclassWindow(m_message.GetHwnd(), MessageSubclassProc); SetWindowLongPtr(m_log.GetHwnd(), GWLP_USERDATA, LPARAM(this)); diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index d28b08d79d..ec6b384b59 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -400,6 +400,7 @@ CSrmmWindow::CSrmmWindow(MCONTACT hContact, bool noActivate, const char *szIniti void CSrmmWindow::OnInitDialog() { + CSrmmBaseDialog::OnInitDialog(); SetWindowLongPtr(m_hwnd, GWLP_USERDATA, (LPARAM)this); m_bIsMeta = db_mc_isMeta(m_hContact) != 0; -- cgit v1.2.3