diff options
| author | Pietro Gagliardi <[email protected]> | 2014-12-07 18:27:35 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-12-07 18:27:35 -0500 |
| commit | e373900cf00dc4416e2f31f050250986fee07693 (patch) | |
| tree | 10c5dbb1ccc8a92f824a73a0ffefec73d22a41a5 /wintable/new/header.h | |
| parent | e224950cf48abe0a0d439fb8d4f154fe59984de7 (diff) | |
Started re-adding the header stuff for real this time.
Diffstat (limited to 'wintable/new/header.h')
| -rw-r--r-- | wintable/new/header.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/wintable/new/header.h b/wintable/new/header.h new file mode 100644 index 0000000..e06188a --- /dev/null +++ b/wintable/new/header.h @@ -0,0 +1,20 @@ +// 7 december 2014 + +static void makeHeader(struct table *t, HINSTANCE hInstance) +{ + t->header = CreateWindowExW(0, + WC_HEADERW, L"", + // TODO WS_BORDER? + // TODO is HDS_HOTTRACK needed? + WS_CHILD | HDS_FULLDRAG | HDS_HORZ | HDS_HOTTRACK, + 0, 0, 0, 0, // no initial size + t->hwnd, (HMENU) 100, hInstance, NULL); + if (t->header == NULL) + panic("error creating Table header"); +} + +static void destroyHeader(struct table *t) +{ + if (DestroyWindow(t->header) == 0) + panic("error destroying Table header"); +} |
