case OS.kEventWindowDrawContent: if (toolTipWindowHandle == whichWindow) { processPaintToolTip(whichWindow); } else {    } return OS.eventNotHandledErr;
	private int handleWindowCallback(int nextHandler, int eRefHandle, int whichWindow) {				int eventClass= OS.GetEventClass(eRefHandle);		int eventKind= OS.GetEventKind(eRefHandle);				switch (eventClass) {					case OS.kEventClassMouse:			return handleMouseEvent(nextHandler, eRefHandle, eventKind, whichWindow);					case OS.kEventClassWindow:			switch (eventKind) {			case OS.kEventWindowActivated:				Widget widget = WidgetTable.get(whichWindow);				if (widget instanceof Shell)					fMenuRootShell= (Shell) widget;				windowProc(whichWindow, true);				break; //return OS.noErr;							case OS.kEventWindowDeactivated:				fMenuRootShell= null;				windowProc(whichWindow, false);				break; // return OS.noErr;							case OS.kEventWindowBoundsChanged:				int[] attr= new int[1];				OS.GetEventParameter(eRefHandle, OS.kEventParamAttributes, OS.typeUInt32, null, attr.length*4, null, attr);					windowProc(whichWindow, SWT.Resize, attr[0]);				return OS.noErr;							case OS.kEventWindowClose:				windowProc(whichWindow, SWT.Dispose);				return OS.noErr;							case OS.kEventWindowDrawContent:				if (toolTipWindowHandle == whichWindow) {					processPaintToolTip(whichWindow);				} else {					//if (MacUtil.HIVIEW)					//return OS.eventNotHandledErr;					//updateWindow2(whichWindow);				}				return OS.eventNotHandledErr;				//return OS.noErr;							default:				System.out.println("handleWindowCallback: kEventClassWindow kind:" + eventKind);				break;			}			break;					default:			System.out.println("handleWindowCallback: unexpected event class: " + MacUtil.toString(eventClass));			break;		}		return OS.eventNotHandledErr;	}