summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-19 17:49:33 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-19 17:49:33 +0300
commit198fa4f35166d05fa513658c30f4a0bc6ab5a733 (patch)
tree044cebd0b9aa16345ea42ea3e6928b13eac68976 /src
parentf2d42ec8f5cafbc61b926e67f3848be2f357a3d0 (diff)
fixes #1283 (StdMsg: cursor does not change the shape)
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/srmm_base.cpp9
1 files changed, 9 insertions, 0 deletions
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);