From 9e11c36f63c04e16f1d1a42a05ec545b2793ce65 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 12 Dec 2014 10:47:23 -0500 Subject: Started tying all the threads together in the drawing loop for real. --- wintable/new/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'wintable/new/main.c') diff --git a/wintable/new/main.c b/wintable/new/main.c index e2f85d9..9fd705e 100644 --- a/wintable/new/main.c +++ b/wintable/new/main.c @@ -26,6 +26,7 @@ // TODO // - should tablePanic be CALLBACK or some other equivalent macro? and definitely export initTable somehow, but which alias macro to use? // - make panic messages grammatically correct ("Table error: adding...") +// - make access to column widths consistent; see whether HDITEMW.cxy == (ITEMRECT.right - ITEMRECT.left) #define tableWindowClass L"gouitable" @@ -55,9 +56,11 @@ struct table { int *columnTypes; intptr_t width; intptr_t headerHeight; - intptr_t hscrollpos; - intptr_t hpagesize; + intptr_t hscrollpos; // in logical units + intptr_t hpagesize; // in logical units intptr_t count; + intptr_t vscrollpos; // in rows + intptr_t vpagesize; // in rows }; #include "util.h" -- cgit v1.2.3