From 4e21ee8b115c08a200d7b4f6dd97c4746ded59b4 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 10 Dec 2014 14:07:14 -0500 Subject: Added headerHeight to the new Table. --- wintable/new/header.h | 1 + wintable/new/main.c | 1 + 2 files changed, 2 insertions(+) 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" -- cgit v1.2.3