From 19358785f64d561bcf60370fe2327a3f9722e789 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 4 Dec 2014 21:12:24 -0500 Subject: [PATCH] More new Windows Table stuff. --- wintable/NEWutil.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 wintable/NEWutil.h 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; +}