diff options
| author | Pietro Gagliardi <[email protected]> | 2015-01-07 22:54:29 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-01-07 22:54:29 -0500 |
| commit | 224bdb40874ff65880f21bda2b85ceebb4a69312 (patch) | |
| tree | 9e8dbd8076a8b3835561c5b01247600a897357b7 /wintable/api.h | |
| parent | 24790f0e7f2865ebb5cef3fd4d82dc3b52a18efc (diff) | |
Added tableSetRowCount.
Diffstat (limited to 'wintable/api.h')
| -rw-r--r-- | wintable/api.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wintable/api.h b/wintable/api.h index fb0e1c0..bf259ad 100644 --- a/wintable/api.h +++ b/wintable/api.h @@ -14,6 +14,8 @@ static void addColumn(struct table *t, WPARAM wParam, LPARAM lParam) HANDLER(apiHandlers) { + intptr_t *rcp; + switch (uMsg) { case WM_SETFONT: // don't free the old font; see http://blogs.msdn.com/b/oldnewthing/archive/2008/09/12/8945692.aspx @@ -30,6 +32,13 @@ HANDLER(apiHandlers) addColumn(t, wParam, lParam); *lResult = 0; return TRUE; + case tableSetRowCount: + rcp = (intptr_t *) lParam; + t->count = *rcp; + // TODO refresh table in this way? + updateTableWidth(t); + *lResult = 0; + return TRUE; } return FALSE; } |
