From a8fed6c28d1c81fbaf5457ad7df905f7de92ec9f Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 10 Dec 2014 10:01:16 -0500 Subject: Changed from recomputeHScroll() to updateTableWidth() as we will store the table width separately and just use one call to SetScrollInfo() for everything to avoid weirdness. --- wintable/new/api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wintable/new/api.h') diff --git a/wintable/new/api.h b/wintable/new/api.h index d3ec3f7..535a940 100644 --- a/wintable/new/api.h +++ b/wintable/new/api.h @@ -9,7 +9,7 @@ static void addColumn(struct table *t, WPARAM wParam, LPARAM lParam) if (t->columnTypes[t->nColumns - 1] >= nTableColumnTypes) panic("invalid column type passed to tableAddColumn"); headerAddColumn(t, (WCHAR *) lParam); - recomputeHScroll(t); + updateTableWidth(t); } HANDLER(apiHandlers) -- cgit v1.2.3