diff options
| author | Pietro Gagliardi <[email protected]> | 2014-12-04 21:12:24 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-12-04 21:12:24 -0500 |
| commit | 19358785f64d561bcf60370fe2327a3f9722e789 (patch) | |
| tree | 90fefd8bb0fe3fb1167cd99a335e139997759c34 | |
| parent | ad6249422b5a0eb15a3710f54e7e57bedee70597 (diff) | |
More new Windows Table stuff.
| -rw-r--r-- | wintable/NEWutil.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/wintable/NEWutil.h b/wintable/NEWutil.h new file mode 100644 index 0000000..e10dd77 --- /dev/null +++ b/wintable/NEWutil.h @@ -0,0 +1,13 @@ +// 4 december 2014 + +typedef BOOL (*handlerfunc)(struct table *, UINT, WPARAM, LPARAM, 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; +} |
