summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-14 19:56:45 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-14 19:56:45 +0000
commit8ddd5d6bbd9da8135a5825e4de21bec71710045f (patch)
tree2fbc07893d2829fbbdd39ca029f58d016d5755eb
parent1e1d41d656d3f2c8218e311a59e4de24635dedb3 (diff)
fix for using mouse wheel in tabs
git-svn-id: http://svn.miranda-ng.org/main/trunk@4032 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/TabSRMM/src/tabctrl.cpp5
1 files 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)