From ed9ebbcc1c9dd8dd7583ac5f5b4260a41ae84079 Mon Sep 17 00:00:00 2001 From: George Hazan <ghazan@miranda.im> Date: Wed, 29 Mar 2023 14:39:25 +0300 Subject: fixes #3375 (StdMsg: double click in the log window does nothing) --- plugins/Scriver/src/chat_main.cpp | 2 +- plugins/Scriver/src/msgdialog.cpp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/Scriver') diff --git a/plugins/Scriver/src/chat_main.cpp b/plugins/Scriver/src/chat_main.cpp index 12acbf6113..0297bbef01 100644 --- a/plugins/Scriver/src/chat_main.cpp +++ b/plugins/Scriver/src/chat_main.cpp @@ -125,7 +125,7 @@ static void ShowRoom(SESSION_INFO *si) else pDlg = si->pDlg; pDlg->UpdateTabControl(); - SendMessage(pDlg->GetHwnd(), WM_MOUSEACTIVATE, 0, 0); + SendMessage(pDlg->GetHwnd(), WM_ACTIVATE, WA_ACTIVE, 0); SetFocus(GetDlgItem(pDlg->GetHwnd(), IDC_SRMM_MESSAGE)); } diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index 12bfe4855d..8b9778537f 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -1069,7 +1069,7 @@ INT_PTR CMsgDialog::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) FixTabIcons(); if (!m_si->pDlg) { g_chatApi.ShowRoom(m_si); - SendMessage(m_hwnd, WM_MOUSEACTIVATE, 0, 0); + SendMessage(m_hwnd, WM_ACTIVATE, WA_ACTIVE, 0); } break; } @@ -1079,8 +1079,6 @@ INT_PTR CMsgDialog::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) if (LOWORD(wParam) != WA_ACTIVE) break; - __fallthrough; - case WM_MOUSEACTIVATE: if (isChat()) { SetFocus(m_message.GetHwnd()); -- cgit v1.2.3