diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-24 12:41:14 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-24 12:41:14 +0300 |
commit | 35ec83f41f78aff503d1bfa16714aadee360d2f7 (patch) | |
tree | 88cf6888fd2c5cedd4d04cfc7691e7e177bde7fe /plugins/TabSRMM/src/msgs.cpp | |
parent | fc86783e3a70b466e101c20f3d9fe6382bff6d09 (diff) |
m_message & m_log moved inside mir_app
Diffstat (limited to 'plugins/TabSRMM/src/msgs.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msgs.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
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;
}
|