From 0dd4a07456557cdba067feb8284e433e7459d72b Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 20 Oct 2014 22:35:37 -0400 Subject: Fixed click to select for the header bar. --- wintable/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'wintable/main.c') diff --git a/wintable/main.c b/wintable/main.c index de8c35c..248cf17 100644 --- a/wintable/main.c +++ b/wintable/main.c @@ -127,6 +127,7 @@ static void selectItem(struct table *t, WPARAM wParam, LPARAM lParam) y = GET_Y_LPARAM(lParam); h = rowHeight(t); y += t->firstVisible * h; + y -= t->headerHeight; y /= h; t->selected = y; if (t->selected >= t->count) -- cgit v1.2.3