From be93143df994116183de976f8507dc7f88d74549 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 8 Mar 2017 13:54:20 +0300 Subject: unused variable removed --- plugins/TabSRMM/src/msgdialog.cpp | 12 +++++------- plugins/TabSRMM/src/msgs.h | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index e82ef3c55a..98676fe553 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -800,7 +800,6 @@ LRESULT CALLBACK SplitterSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM case WM_LBUTTONDOWN: if (hwnd == GetDlgItem(hwndParent, IDC_SPLITTERY)) { GetClientRect(hwnd, &rc); - dat->m_iSavedMultiSplit = rc.right > rc.bottom ? (short)HIWORD(GetMessagePos()) + rc.bottom / 2 : (short)LOWORD(GetMessagePos()) + rc.right / 2; dat->m_savedSplitterY = dat->m_iSplitterY; dat->m_savedDynaSplit = dat->m_dynaSplitter; } @@ -848,21 +847,20 @@ LRESULT CALLBACK SplitterSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM RedrawWindow(hwndParent, NULL, NULL, RDW_ALLCHILDREN | RDW_INVALIDATE | RDW_UPDATENOW); } else if (hwnd == GetDlgItem(hwndParent, IDC_SPLITTERY)) { - HMENU hMenu = GetSubMenu(PluginConfig.g_hMenuContext, 12); - LONG messagePos = GetMessagePos(); - - GetClientRect(hwnd, &rc); - if (hwndCapture != hwnd || dat->m_iSavedMultiSplit == (rc.right > rc.bottom ? (short)HIWORD(messagePos) + rc.bottom / 2 : (short)LOWORD(messagePos) + rc.right / 2)) + if (hwndCapture != hwnd) break; POINT pt; GetCursorPos(&pt); + LONG messagePos = GetMessagePos(); + GetClientRect(hwnd, &rc); + int selection; if (dat->m_bIsAutosizingInput) selection = ID_SPLITTERCONTEXT_SETPOSITIONFORTHISSESSION; else - selection = TrackPopupMenu(hMenu, TPM_RETURNCMD, pt.x, pt.y, 0, hwndParent, NULL); + selection = TrackPopupMenu(GetSubMenu(PluginConfig.g_hMenuContext, 12), TPM_RETURNCMD, pt.x, pt.y, 0, hwndParent, NULL); switch (selection) { case ID_SPLITTERCONTEXT_SAVEFORTHISCONTACTONLY: diff --git a/plugins/TabSRMM/src/msgs.h b/plugins/TabSRMM/src/msgs.h index 41cf2febae..5cc3372cc7 100644 --- a/plugins/TabSRMM/src/msgs.h +++ b/plugins/TabSRMM/src/msgs.h @@ -282,7 +282,7 @@ public: int m_originalSplitterY; int m_iSplitterY, m_dynaSplitter; int m_savedSplitterY, m_savedDynaSplit; - int m_iSavedMultiSplit, m_iMultiSplit; + int m_iMultiSplit; SIZE m_minEditBoxSize; int m_nTypeSecs; int m_nTypeMode; -- cgit v1.2.3