case OS.kEventMenuMeasureItemWidth: return kEventMenuMeasureItemWidth (nextHandler, theEvent, userData); case OS.kEventMenuOpening:		return kEventMenuOpening (nextHandler, theEvent, userData); case OS.kEventMenuTargetItem:	return kEventMenuTargetItem (nextHandler, theEvent, userData);
case OS.kEventMenuGetFrameBounds: 	return kEventMenuGetFrameBounds (nextHandler, theEvent, userData); case OS.kEventMenuMeasureItemWidth: 	return kEventMenuMeasureItemWidth (nextHandler, theEvent, userData); case OS.kEventMenuOpening:			return kEventMenuOpening (nextHandler, theEvent, userData); case OS.kEventMenuTargetItem:			return kEventMenuTargetItem (nextHandler, theEvent, userData);
int menuProc (int nextHandler, int theEvent, int userData) {		int eventKind = OS.GetEventKind (theEvent);	switch (eventKind) {		case OS.kEventMenuClosed:		return kEventMenuClosed (nextHandler, theEvent, userData);		case OS.kEventMenuDrawItemContent: 	return kEventMenuDrawItemContent (nextHandler, theEvent, userData);		case OS.kEventMenuMeasureItemWidth: return kEventMenuMeasureItemWidth (nextHandler, theEvent, userData);		case OS.kEventMenuOpening:		return kEventMenuOpening (nextHandler, theEvent, userData);		case OS.kEventMenuTargetItem:	return kEventMenuTargetItem (nextHandler, theEvent, userData);	}	return OS.eventNotHandledErr;}