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/header.h | |
| parent | ce64650aadf1f7dd751a1f753dff920ba1652edf (diff) | |
More update() reasoning and TODOs.
Diffstat (limited to 'wintable/header.h')
| -rw-r--r-- | wintable/header.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/wintable/header.h b/wintable/header.h index 863d3d0..b87f7c6 100644 --- a/wintable/header.h +++ b/wintable/header.h @@ -61,6 +61,7 @@ static void headerAddColumn(struct table *t, WCHAR *name) panic("error adding column to Table header"); } +// TODO is this triggered if we programmatically move headers (for autosizing)? HANDLER(headerNotifyHandler) { NMHDR *nmhdr = (NMHDR *) lParam; @@ -71,7 +72,8 @@ HANDLER(headerNotifyHandler) return FALSE; update(t, TRUE); // TODO make more intelligent - // (TODO is it actually needed?) + // to do this, we have to redraw the column to the left of the divider that was dragged and scroll everything to the right normally (leaving the hole that was scrolled invalidated as well) + // of course, this implies that dragging a divider only resizes the column of which it is the right side of and moves all others InvalidateRect(t->hwnd, NULL, TRUE); *lResult = 0; return TRUE; |
