From 47a83a311d6f9702ab6ce87a38d77234496d09ad Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 8 Dec 2014 08:50:42 -0500 Subject: Added new Windows Table header columns (and this time we'll split out the dummy data). --- wintable/new/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'wintable/new/main.c') diff --git a/wintable/new/main.c b/wintable/new/main.c index 84508bb..cc27111 100644 --- a/wintable/new/main.c +++ b/wintable/new/main.c @@ -65,6 +65,13 @@ static const handlerfunc handlers[] = { NULL, }; +static void initDummyTableStuff(struct table *t) +{ + headerAddColumn(t, L"Column 1"); + headerAddColumn(t, L"Column 2"); + headerAddColumn(t, L"Column 3"); +} + static LRESULT CALLBACK tableWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { struct table *t; @@ -81,6 +88,7 @@ static LRESULT CALLBACK tableWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM t = (struct table *) tableAlloc(sizeof (struct table), "error allocating internal Table data structure"); t->hwnd = hwnd; makeHeader(t, cs->hInstance); +initDummyTableStuff(t); SetWindowLongPtrW(hwnd, GWLP_USERDATA, (LONG_PTR) t); } // even if we did the above, fall through -- cgit v1.2.3