From 35ec83f41f78aff503d1bfa16714aadee360d2f7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 24 Mar 2017 12:41:14 +0300 Subject: m_message & m_log moved inside mir_app --- plugins/TabSRMM/src/msgs.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'plugins/TabSRMM/src/msgs.cpp') diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp index 6c902c6570..6262f82e4d 100644 --- a/plugins/TabSRMM/src/msgs.cpp +++ b/plugins/TabSRMM/src/msgs.cpp @@ -120,15 +120,10 @@ static INT_PTR GetWindowData(WPARAM wParam, LPARAM lParam) CTabBaseDlg::CTabBaseDlg(int iResource, SESSION_INFO *si) : CSrmmBaseDialog(g_hInst, iResource, si), - m_log(this, IDC_LOG), - m_message(this, IDC_MESSAGE), m_pPanel(this), m_dwFlags(MWF_INITMODE), m_iInputAreaHeight(-1) { - m_pLog = &m_log; - m_pEntry = &m_message; - m_autoClose = CLOSE_ON_CANCEL; m_forceResizable = true; } @@ -531,7 +526,7 @@ INT_PTR SendMessageCommand_Worker(MCONTACT hContact, LPCSTR pszMsg, bool isWchar HWND hwnd = M.FindWindow(hContact); if (hwnd) { if (pszMsg) { - HWND hEdit = GetDlgItem(hwnd, IDC_MESSAGE); + HWND hEdit = GetDlgItem(hwnd, IDC_SRMM_MESSAGE); SendMessage(hEdit, EM_SETSEL, -1, GetWindowTextLength(hEdit)); if (isWchar) SendMessageW(hEdit, EM_REPLACESEL, FALSE, (LPARAM)pszMsg); @@ -665,7 +660,7 @@ int TSAPI ActivateExistingTab(TContainerData *pContainer, HWND hwndChild) SetForegroundWindow(pContainer->m_hwnd); if (!dat->isChat()) - SetFocus(GetDlgItem(hwndChild, IDC_MESSAGE)); + SetFocus(GetDlgItem(hwndChild, IDC_SRMM_MESSAGE)); return TRUE; } -- cgit v1.2.3