From 47f15dd571c33bee3ee6f08d1a1151bb0b58e548 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 23 Jul 2019 18:47:22 +0300 Subject: fixes #2016 (rclick behaves strangely in SRMM nick list) --- src/mir_app/src/chat_tools.cpp | 2 +- src/mir_app/src/srmm_base.cpp | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) (limited to 'src/mir_app') diff --git a/src/mir_app/src/chat_tools.cpp b/src/mir_app/src/chat_tools.cpp index d84db16bb2..fad905e215 100644 --- a/src/mir_app/src/chat_tools.cpp +++ b/src/mir_app/src/chat_tools.cpp @@ -785,7 +785,7 @@ MIR_APP_DLL(UINT) Chat_CreateGCMenu(HWND hwnd, HMENU hMenu, POINT pt, SESSION_IN NotifyEventHooks(hevBuildMenuEvent, 0, (WPARAM)&gcmi); - return TrackPopupMenu(hMenu, TPM_RETURNCMD, pt.x, pt.y, 0, hwnd, nullptr); + return TrackPopupMenu(hMenu, TPM_RETURNCMD | TPM_RIGHTBUTTON, pt.x, pt.y, 0, hwnd, nullptr); } MIR_APP_DLL(void) Chat_DestroyGCMenu(HMENU hMenu, int iIndex) diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp index c4f00bc91c..cff7201f24 100644 --- a/src/mir_app/src/srmm_base.cpp +++ b/src/mir_app/src/srmm_base.cpp @@ -500,14 +500,6 @@ LRESULT CSrmmBaseDialog::WndProc_Nicklist(UINT msg, WPARAM wParam, LPARAM lParam RECT rc; switch (msg) { - case WM_RBUTTONDOWN: - m_nickList.SendMsg(WM_LBUTTONDOWN, wParam, lParam); - break; - - case WM_RBUTTONUP: - m_nickList.SendMsg(WM_LBUTTONUP, wParam, lParam); - break; - case WM_MEASUREITEM: { MEASUREITEMSTRUCT *mis = (MEASUREITEMSTRUCT *)lParam; -- cgit v1.2.3