diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-14 19:56:45 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-14 19:56:45 +0000 |
commit | 8ddd5d6bbd9da8135a5825e4de21bec71710045f (patch) | |
tree | 2fbc07893d2829fbbdd39ca029f58d016d5755eb /plugins | |
parent | 1e1d41d656d3f2c8218e311a59e4de24635dedb3 (diff) |
fix for using mouse wheel in tabs
git-svn-id: http://svn.miranda-ng.org/main/trunk@4032 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/TabSRMM/src/tabctrl.cpp | 5 |
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)
|