More new Windows Table stuff.

This commit is contained in:
Pietro Gagliardi 2014-12-04 21:12:24 -05:00
parent ad6249422b
commit 19358785f6
1 changed files with 13 additions and 0 deletions

13
wintable/NEWutil.h Normal file
View File

@ -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;
}