diff options
| author | Pietro Gagliardi <[email protected]> | 2014-11-11 13:57:16 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-11-11 13:57:16 -0500 |
| commit | 7409ce424ef04edead1cce8f10ba77433bca7fc5 (patch) | |
| tree | 6eb4ae4dd432811dc30a99784368312943255f49 /wintable/main.c | |
| parent | 0ab175471bddc5611ed3196a3bbe3ea8ddf06194 (diff) | |
More TODOs and redraws.
Diffstat (limited to 'wintable/main.c')
| -rw-r--r-- | wintable/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wintable/main.c b/wintable/main.c index f036a27..28b6243 100644 --- a/wintable/main.c +++ b/wintable/main.c @@ -39,6 +39,7 @@ enum { // - accessibility // - must use MSAA as UI Automation is not included by default on Windows XP (and apparently requires SP3?) // - try horizontally scrolling the initail window and watch the selection rect corrupt itself *sometimes* +// - preallocate t->columnTypes instead of keeping it at exactly the right size #define tableWindowClass L"gouitable" @@ -160,6 +161,8 @@ static void addColumn(struct table *t, WPARAM wParam, LPARAM lParam) item.fmt = HDF_LEFT | HDF_STRING; if (SendMessage(t->header, HDM_INSERTITEM, (WPARAM) (t->nColumns - 1), (LPARAM) (&item)) == (LRESULT) (-1)) abort(); + // TODO resize(t)? + redrawAll(t); } static void hscrollto(struct table *t, intptr_t newpos) |
