diff options
| author | Pietro Gagliardi <[email protected]> | 2015-01-08 02:05:06 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-01-08 02:05:06 -0500 |
| commit | fe42db6ebd9a5d4defad8ef8fb82cc82ab2b1226 (patch) | |
| tree | 029630137956d4a4080fc587dd4c09d7587067cd /wintable/api.h | |
| parent | ce64650aadf1f7dd751a1f753dff920ba1652edf (diff) | |
More update() reasoning and TODOs.
Diffstat (limited to 'wintable/api.h')
| -rw-r--r-- | wintable/api.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/wintable/api.h b/wintable/api.h index f6895e5..d0399e4 100644 --- a/wintable/api.h +++ b/wintable/api.h @@ -10,6 +10,8 @@ static void addColumn(struct table *t, WPARAM wParam, LPARAM lParam) panic("invalid column type passed to tableAddColumn"); headerAddColumn(t, (WCHAR *) lParam); update(t, TRUE); + // TODO only redraw the part of the client area where the new client went, if any + // (TODO when — if — adding autoresize, figure this one out) } HANDLER(apiHandlers) @@ -38,8 +40,9 @@ HANDLER(apiHandlers) case tableSetRowCount: rcp = (intptr_t *) lParam; t->count = *rcp; - // TODO shouldn't we just redraw everything? - update(t, TRUE); + // we DO redraw everything because we don't want any rows that should no longer be there to remain on screen! + updateAll(t); // DONE + // TODO reset checkbox and selection logic if the current row for both no longer exists *lResult = 0; return TRUE; } |
