summaryrefslogtreecommitdiff
path: root/wintable/new/api.h
diff options
context:
space:
mode:
Diffstat (limited to 'wintable/new/api.h')
-rw-r--r--wintable/new/api.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/wintable/new/api.h b/wintable/new/api.h
new file mode 100644
index 0000000..d29d3b2
--- /dev/null
+++ b/wintable/new/api.h
@@ -0,0 +1,22 @@
+// 8 december 2014
+
+HANDLER(apiHandlers)
+{
+ switch (uMsg) {
+ case WM_SETFONT:
+ // TODO release old font?
+ t->font = (HFONT) wParam;
+ SendMessageW(t->header, WM_SETFONT, wParam, lParam);
+ // TODO reposition header?
+ // TODO how to properly handle LOWORD(lParam) != FALSE?
+ *lResult = 0;
+ return TRUE;
+ case WM_GETFONT:
+ *lResult = (LRESULT) (t->font);
+ return TRUE;
+ case tableAddColumn:
+ // TODO
+ return FALSE;
+ }
+ return FALSE;
+}