diff options
| -rw-r--r-- | wintable/new/header.h | 1 | ||||
| -rw-r--r-- | wintable/new/main.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/wintable/new/header.h b/wintable/new/header.h index c89b506..b992235 100644 --- a/wintable/new/header.h +++ b/wintable/new/header.h @@ -37,6 +37,7 @@ static void repositionHeader(struct table *t) // see above on showing the header here instead of in the CreateWindowExW() call wp.flags | SWP_SHOWWINDOW) == 0) panic("error repositioning Table header"); + t->headerHeight = wp.cy; } static void headerAddColumn(struct table *t, WCHAR *name) diff --git a/wintable/new/main.c b/wintable/new/main.c index 79b00ae..0ad1d30 100644 --- a/wintable/new/main.c +++ b/wintable/new/main.c @@ -53,6 +53,7 @@ struct table { intptr_t nColumns; int *columnTypes; intptr_t width; + intptr_t headerHeight; }; #include "util.h" |
