summaryrefslogtreecommitdiff
path: root/wintable/NEWutil.h
blob: e10dd77e6910ac22763eae240b212d54c2453905 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;
}