diff options
| author | Pietro Gagliardi <[email protected]> | 2014-12-05 10:27:45 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-12-05 10:27:45 -0500 |
| commit | 61f7316d562f4c02c9e3d1bb30c3ba3963ded4a8 (patch) | |
| tree | e94f9f94861a8a6173160f4c85e742333bf17133 /wintable/new/util.h | |
| parent | f7daa5580f8788a8d15f46b65c2e21ca96db8523 (diff) | |
Moved the rewrite of the new Windows Table to its /own/ folder.
Diffstat (limited to 'wintable/new/util.h')
| -rw-r--r-- | wintable/new/util.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/wintable/new/util.h b/wintable/new/util.h new file mode 100644 index 0000000..c6cbfb3 --- /dev/null +++ b/wintable/new/util.h @@ -0,0 +1,14 @@ +// 4 december 2014 + +typedef BOOL (*handlerfunc)(struct table *, UINT, WPARAM, LPARAM, LRESULT *); +#define HANDLER(name) static BOOL name(struct table *t, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *lResult) + +static BOOL runHandlers(handlerfunc *list, struct table *t, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *lResult) +{ + handlerfunc *p; + + for (p = list; *p != NULL; p++) + if ((*(*p))(t, uMsg, wParam, lParam, lResult)) + return TRUE; + return FALSE; +} |
