summaryrefslogtreecommitdiff
path: root/plugins/Scriver
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 /plugins/Scriver
parentf2d42ec8f5cafbc61b926e67f3848be2f357a3d0 (diff)
fixes #1283 (StdMsg: cursor does not change the shape)
Diffstat (limited to 'plugins/Scriver')
-rw-r--r--plugins/Scriver/src/msgdialog.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp
index 020404d9ae..0ea68c5da6 100644
--- a/plugins/Scriver/src/msgdialog.cpp
+++ b/plugins/Scriver/src/msgdialog.cpp
@@ -910,7 +910,6 @@ void CSrmmWindow::MessageDialogResize(int w, int h)
LRESULT CSrmmWindow::WndProc_Log(UINT msg, WPARAM wParam, LPARAM lParam)
{
- static BOOL inMenu = FALSE;
switch (msg) {
case WM_MEASUREITEM:
MeasureMenuItem(wParam, lParam);
@@ -919,13 +918,6 @@ LRESULT CSrmmWindow::WndProc_Log(UINT msg, WPARAM wParam, LPARAM lParam)
case WM_DRAWITEM:
return DrawMenuItem(wParam, lParam);
- case WM_SETCURSOR:
- if (inMenu) {
- SetCursor(LoadCursor(nullptr, IDC_ARROW));
- return TRUE;
- }
- break;
-
case WM_CONTEXTMENU:
HMENU hMenu = LoadMenu(g_hInst, MAKEINTRESOURCE(IDR_CONTEXT));
HMENU hSubMenu = GetSubMenu(hMenu, 0);
@@ -957,9 +949,9 @@ LRESULT CSrmmWindow::WndProc_Log(UINT msg, WPARAM wParam, LPARAM lParam)
}
else ModifyMenu(hSubMenu, 5, MF_STRING | MF_GRAYED | MF_BYPOSITION, 5, TranslateT("No word to look up"));
- inMenu = TRUE;
+ m_bInMenu = true;
int uID = TrackPopupMenu(hSubMenu, TPM_RETURNCMD, pt.x, pt.y, 0, m_log.GetHwnd(), nullptr);
- inMenu = FALSE;
+ m_bInMenu = false;
switch (uID) {
case IDM_COPY: