More header support code, including header notification scaffolding.
This commit is contained in:
parent
04787b169a
commit
399b4639fe
|
@ -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;
|
||||
}
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue