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