diff options
| author | Pietro Gagliardi <[email protected]> | 2014-12-08 15:04:43 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-12-08 15:04:43 -0500 |
| commit | 9b3555f25714252f7739a5d941563c95d718dc73 (patch) | |
| tree | 9d469ca5509d4ec63f31d18e7742781e6d64730c /wintable/new/api.h | |
| parent | 01efbd750f7dfeb8c27afc92f3403fa07f1bc1c4 (diff) | |
Readded api.h, for WM_GETFONT/WM_SETFONT. We'll need this to re-add rowHeight().
Diffstat (limited to 'wintable/new/api.h')
| -rw-r--r-- | wintable/new/api.h | 22 |
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; +} |
