OS.InstallEventHandler(OS.GetControlEventTarget(handle), display.fControlProc, 1, new int[] { OS.kEventClassControl, OS.kEventControlDraw, }, handle, null);
int[] mask= new int[] { OS.kEventClassControl, OS.kEventControlDraw, }; OS.InstallEventHandler(OS.GetControlEventTarget(handle), display.fControlProc, mask.length/2, mask, handle, null);
void hookEvents () {	super.hookEvents ();	/* AW	int windowProc = getDisplay ().windowProc;	OS.XtAddEventHandler (handle, OS.KeyPressMask, false, windowProc, SWT.KeyDown);	OS.XtAddEventHandler (handle, OS.KeyReleaseMask, false, windowProc, SWT.KeyUp);	OS.XtAddEventHandler (handle, OS.ButtonPressMask, false, windowProc, SWT.MouseDown);	OS.XtAddEventHandler (handle, OS.ButtonReleaseMask, false, windowProc, SWT.MouseUp);	OS.XtAddEventHandler (handle, OS.PointerMotionMask, false, windowProc, SWT.MouseMove);	OS.XtAddEventHandler (handle, OS.EnterWindowMask, false, windowProc, SWT.MouseEnter);	OS.XtAddEventHandler (handle, OS.LeaveWindowMask, false, windowProc, SWT.MouseExit);	OS.XtAddCallback (handle, OS.XmNexposeCallback, windowProc, SWT.Paint);	*/	Display display= getDisplay();	OS.InstallEventHandler(OS.GetControlEventTarget(handle), display.fControlProc, 1,		new int[] {			OS.kEventClassControl, OS.kEventControlDraw,		},		handle, null);	if ((style & SWT.SEPARATOR) != 0) return;	OS.SetControlData(handle, OS.kControlEntireControl, OS.kControlUserPaneHitTestProcTag, 4, new int[]{display.fUserPaneHitTestProc});}