From 7c437a1c960f301af9596e06e505c24b02ae266d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 29 Mar 2023 20:06:28 +0300 Subject: code cleaning --- src/core/stdmsg/src/msgdialog.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'src/core') diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index e7ee4cb6e9..c4496270ae 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -658,33 +658,8 @@ INT_PTR CMsgDialog::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam) break; case WM_NOTIFY: - HCURSOR hCur; switch (((LPNMHDR)lParam)->idFrom) { case IDC_SRMM_LOG: - switch (((LPNMHDR)lParam)->code) { - case EN_MSGFILTER: - switch (((MSGFILTER *)lParam)->msg) { - case WM_LBUTTONDOWN: - hCur = GetCursor(); - if (hCur == LoadCursor(nullptr, IDC_SIZENS) || hCur == LoadCursor(nullptr, IDC_SIZEWE) || hCur == LoadCursor(nullptr, IDC_SIZENESW) || hCur == LoadCursor(nullptr, IDC_SIZENWSE)) { - SetWindowLongPtr(m_hwnd, DWLP_MSGRESULT, TRUE); - return TRUE; - } - break; - - case WM_MOUSEMOVE: - hCur = GetCursor(); - if (hCur == LoadCursor(nullptr, IDC_SIZENS) || hCur == LoadCursor(nullptr, IDC_SIZEWE) || hCur == LoadCursor(nullptr, IDC_SIZENESW) || hCur == LoadCursor(nullptr, IDC_SIZENWSE)) - SetCursor(LoadCursor(nullptr, IDC_ARROW)); - break; - - case WM_RBUTTONUP: - SetWindowLongPtr(m_hwnd, DWLP_MSGRESULT, TRUE); - return TRUE; - } - } - break; - case IDC_SRMM_MESSAGE: if (((LPNMHDR)lParam)->code == EN_MSGFILTER && ((MSGFILTER *)lParam)->msg == WM_RBUTTONUP) { SetWindowLongPtr(m_hwnd, DWLP_MSGRESULT, TRUE); -- cgit v1.2.3