summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)