From 224bdb40874ff65880f21bda2b85ceebb4a69312 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 7 Jan 2015 22:54:29 -0500 Subject: Added tableSetRowCount. --- wintable/main.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'wintable/main.h') diff --git a/wintable/main.h b/wintable/main.h index d17f5d8..c8ba30c 100644 --- a/wintable/main.h +++ b/wintable/main.h @@ -12,14 +12,19 @@ // - collect all resize-related tasks in a single function (so things like adding columns will refresh everything, not just horizontal scrolls; also would fix initial coordinates) // - checkbox columns don't clip to the column width // - send standard notification codes +// - seriously figure out how we're going to update everything about the table in one place #define tableWindowClass L"gouitable" // start at WM_USER + 20 just in case for whatever reason we ever get the various dialog manager messages (see also http://blogs.msdn.com/b/oldnewthing/archive/2003/10/21/55384.aspx) +// each of these returns nothing unless otherwise indicated enum { // wParam - one of the type constants // lParam - column name as a Unicode string tableAddColumn = WM_USER + 20, + // wParam - 0 + // lParam - pointer to intptr_t containing new count + tableSetRowCount, }; enum { @@ -127,7 +132,6 @@ static const handlerfunc handlers[] = { static void initDummyTableStuff(struct table *t) { - t->count = 100; t->selectedRow = 2; t->selectedColumn = 1; } -- cgit v1.2.3