From 198fa4f35166d05fa513658c30f4a0bc6ab5a733 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 19 Apr 2018 17:49:33 +0300 Subject: fixes #1283 (StdMsg: cursor does not change the shape) --- src/mir_app/src/srmm_base.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp index 76d653ad52..6624d07f70 100644 --- a/src/mir_app/src/srmm_base.cpp +++ b/src/mir_app/src/srmm_base.cpp @@ -160,6 +160,13 @@ LRESULT CSrmmBaseDialog::WndProc_Log(UINT msg, WPARAM wParam, LPARAM lParam) } break; + case WM_SETCURSOR: + if (m_bInMenu) { + SetCursor(LoadCursor(nullptr, IDC_ARROW)); + return TRUE; + } + break; + case WM_KEYDOWN: case WM_SYSKEYDOWN: if (!(GetKeyState(VK_RMENU) & 0x8000)) { @@ -231,7 +238,9 @@ LRESULT CSrmmBaseDialog::WndProc_Log(UINT msg, WPARAM wParam, LPARAM lParam) CHARRANGE all = { 0, -1 }; HMENU hMenu = GetSubMenu(g_hMenu, 1); + m_bInMenu = true; UINT uID = Chat_CreateGCMenu(m_log.GetHwnd(), hMenu, pt, m_si, nullptr, pszWord); + m_bInMenu = false; switch (uID) { case 0: PostMessage(m_hwnd, WM_MOUSEACTIVATE, 0, 0); -- cgit v1.2.3