From 5b904dfa9418a34d2beb6178f5b6cc5aa8da355c Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 3 Dec 2014 19:38:08 -0500 Subject: More Windows Table work. --- wintable/hscroll.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'wintable/hscroll.h') 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; +} -- cgit v1.2.3