summaryrefslogtreecommitdiff
path: root/wintable/hscroll.h
diff options
context:
space:
mode:
Diffstat (limited to 'wintable/hscroll.h')
-rw-r--r--wintable/hscroll.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/wintable/hscroll.h b/wintable/hscroll.h
index 6c700a7..f4c3b0f 100644
--- a/wintable/hscroll.h
+++ b/wintable/hscroll.h
@@ -112,3 +112,14 @@ static void recomputeHScroll(struct table *t)
si.nMax = t->width - 1; // - 1 because endpoints inclusive
SetScrollInfo(t->hwnd, SB_HORZ, &si, TRUE);
}
+
+HANDLER(hscroll)
+{
+ switch (uMsg) {
+ case WM_HSCROLL:
+ hscroll(t, wParam);
+ *lResult = 0;
+ return TRUE;
+ }
+ return FALSE;
+}