From 8ea320220a8aad4f7c8208275f407ec985e4a6db Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 11 Dec 2014 16:43:05 -0500 Subject: Mostly finisshed up horizontal scrolling by hooking it up to everything else. The sample text draw doesn't seem to be working correctly, but I'm not sure /when/ it breaks right now... --- wintable/new/header.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wintable/new/header.h') diff --git a/wintable/new/header.h b/wintable/new/header.h index ba2d4d4..f23c812 100644 --- a/wintable/new/header.h +++ b/wintable/new/header.h @@ -28,6 +28,8 @@ static void repositionHeader(struct table *t) if (GetClientRect(t->hwnd, &r) == 0) panic("error getting client rect for Table header repositioning"); + // we fake horizontal scrolling here by extending the client rect to the left by the scroll position + r.left -= t->hscrollpos; l.prc = &r; l.pwpos = ℘ if (SendMessageW(t->header, HDM_LAYOUT, 0, (LPARAM) (&l)) == FALSE) -- cgit v1.2.3