summaryrefslogtreecommitdiff
path: root/wintable/new/header.h
diff options
context:
space:
mode:
Diffstat (limited to 'wintable/new/header.h')
-rw-r--r--wintable/new/header.h2
1 files changed, 2 insertions, 0 deletions
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)