From 8ddd5d6bbd9da8135a5825e4de21bec71710045f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 14 Mar 2013 19:56:45 +0000 Subject: fix for using mouse wheel in tabs git-svn-id: http://svn.miranda-ng.org/main/trunk@4032 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/tabctrl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/TabSRMM/src/tabctrl.cpp b/plugins/TabSRMM/src/tabctrl.cpp index cff4be4b17..714a362291 100644 --- a/plugins/TabSRMM/src/tabctrl.cpp +++ b/plugins/TabSRMM/src/tabctrl.cpp @@ -1130,7 +1130,8 @@ static LRESULT CALLBACK TabControlSubclassProc(HWND hwnd, UINT msg, WPARAM wPara SendMessage(hwnd, EM_SEARCHSCROLLER, 0, 0); } - } else if (tabdat->dwStyle & TCS_BUTTONS && iTabs > 0) { + } + else if (tabdat->dwStyle & TCS_BUTTONS && iTabs > 0) { RECT rcClient, rcItem; int nrTabsPerLine; GetClientRect(hwnd, &rcClient); @@ -1344,7 +1345,7 @@ static LRESULT CALLBACK TabControlSubclassProc(HWND hwnd, UINT msg, WPARAM wPara case WM_MOUSEWHEEL: if (lParam == -1) { - int amount = HIWORD(wParam); + short amount = short(HIWORD(wParam)); if (amount > 0) SendMessage(GetParent(hwnd), DM_SELECTTAB, DM_SELECT_PREV, 0); else if (amount < 0) -- cgit v1.2.3