summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-03-29 14:39:25 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-03-29 14:39:25 +0300
commited9ebbcc1c9dd8dd7583ac5f5b4260a41ae84079 (patch)
tree285798317245f13a1ef0ce6891ce3a06566b8ecd /src
parent0868340cf0cdb100caf7f124069d98548ec00bd2 (diff)
fixes #3375 (StdMsg: double click in the log window does nothing)
Diffstat (limited to 'src')
-rw-r--r--src/core/stdmsg/src/msgdialog.cpp9
-rw-r--r--src/mir_core/src/Windows/CCtrlPages.cpp2
2 files changed, 3 insertions, 8 deletions
diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp
index d1c05cfe85..f3626d1180 100644
--- a/src/core/stdmsg/src/msgdialog.cpp
+++ b/src/core/stdmsg/src/msgdialog.cpp
@@ -725,14 +725,9 @@ INT_PTR CMsgDialog::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
SetFocus(m_message.GetHwnd());
break;
- case WM_ACTIVATE:
- if (LOWORD(wParam) != WA_ACTIVE)
- break;
-
- __fallthrough;
-
case WM_MOUSEACTIVATE:
- OnActivate();
+ if (LOWORD(wParam) == WA_ACTIVE)
+ OnActivate();
break;
}
diff --git a/src/mir_core/src/Windows/CCtrlPages.cpp b/src/mir_core/src/Windows/CCtrlPages.cpp
index 8d7e120f13..7060c9b751 100644
--- a/src/mir_core/src/Windows/CCtrlPages.cpp
+++ b/src/mir_core/src/Windows/CCtrlPages.cpp
@@ -167,7 +167,7 @@ void CCtrlPages::ActivatePage(int iPage)
TabCtrl_SetCurSel(m_hwnd, iPage);
ShowPage(m_pActivePage);
}
- ::SendMessage(m_pActivePage->GetHwnd(), WM_MOUSEACTIVATE, 0, 0);
+ ::SendMessage(m_pActivePage->GetHwnd(), WM_ACTIVATE, WA_ACTIVE, 0);
}
void CCtrlPages::CheckRowCount()