andlabs-ui/wintable/NEWutil.h

14 lines
353 B
C
Raw Normal View History

2014-12-04 20:12:24 -06:00
// 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;
}