diff options
| author | Pietro Gagliardi <[email protected]> | 2014-12-10 14:07:14 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-12-10 14:07:14 -0500 |
| commit | 4e21ee8b115c08a200d7b4f6dd97c4746ded59b4 (patch) | |
| tree | a0264490354d6cd343fb09c62a607a31ad007d2b | |
| parent | 395521b832acb7f5133f1b2b1920cd31734ed585 (diff) | |
Added headerHeight to the new Table.
| -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" |
