summaryrefslogtreecommitdiff
path: root/wintable/new/main.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-12-08 08:50:42 -0500
committerPietro Gagliardi <[email protected]>2014-12-08 08:50:42 -0500
commit47a83a311d6f9702ab6ce87a38d77234496d09ad (patch)
treecbaf6d687eb56ed79ccb79f37f66e38e6b5cba1e /wintable/new/main.c
parent26f7fc6a6b8c60309dbf50ecee448e2f9c68ad3d (diff)
Added new Windows Table header columns (and this time we'll split out the dummy data).
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