diff options
| author | Pietro Gagliardi <[email protected]> | 2014-12-08 12:57:54 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-12-08 12:57:54 -0500 |
| commit | 01efbd750f7dfeb8c27afc92f3403fa07f1bc1c4 (patch) | |
| tree | 6317b2fdb3cf8260a2af9a8efb109c00e066246d /wintable/new/header.h | |
| parent | 7cfda3ad616affbb062c3dc5f5c79f8710b382fb (diff) | |
Added tracking of header column sizes.
Diffstat (limited to 'wintable/new/header.h')
| -rw-r--r-- | wintable/new/header.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/wintable/new/header.h b/wintable/new/header.h index 14281ef..16b33f7 100644 --- a/wintable/new/header.h +++ b/wintable/new/header.h @@ -52,3 +52,17 @@ static void headerAddColumn(struct table *t, WCHAR *name) if (SendMessage(t->header, HDM_INSERTITEM, (WPARAM) (100), (LPARAM) (&item)) == (LRESULT) (-1)) panic("error adding column to Table header"); } + +HANDLER(headerNotifyHandler) +{ + NMHDR *nmhdr = (NMHDR *) lParam; + + if (nmhdr->hwndFrom != t->header) + return FALSE; + if (nmhdr->code != HDN_ITEMCHANGED) + return FALSE; + // TODO + InvalidateRect(t->hwnd, NULL, TRUE); + *lResult = 0; + return TRUE; +} |
