More header support code, including header notification scaffolding.

This commit is contained in:
Pietro Gagliardi 2014-12-07 18:43:05 -05:00
parent 04787b169a
commit 399b4639fe
3 changed files with 25 additions and 0 deletions

18
wintable/new/children.h Normal file
View File

@ -0,0 +1,18 @@
// 7 december 2014
static const handlerfunc commandHandlers[] = {
NULL,
};
static const handlerfunc notifyHandlers[] = {
NULL,
};
HANDLER(childrenHandlers)
{
if (uMsg == WM_COMMAND)
return runHandlers(commandHandlers, t, uMsg, wParam, lParam, lResult);
if (uMsg == WM_NOTIFY)
return runHandlers(notifyHandlers, t, uMsg, wParam, lParam, lResult);
return FALSE;
}

View File

@ -18,3 +18,8 @@ static void destroyHeader(struct table *t)
if (DestroyWindow(t->header) == 0)
panic("error destroying Table header");
}
static void repositionHeader(struct table *t)
{
// TODO http://msdn.microsoft.com/en-us/library/windows/desktop/hh298357%28v=vs.85%29.aspx
}

View File

@ -55,9 +55,11 @@ struct table {
#include "coord.h"
#include "events.h"
#include "header.h"
#include "children.h"
static const handlerfunc handlers[] = {
eventHandlers,
childrenHandlers,
NULL,
};