Shell shell = getShell();
private int OnUIDeactivate(int fUndoable) {	// currently, we are ignoring the fUndoable flag	if (frame == null || frame.isDisposed()) return COM.S_OK;	state = STATE_INPLACEACTIVE;	frame.SetActiveObject(0,0);	redraw();	if (getDisplay().getFocusControl() == frame) {		getShell().traverse(SWT.TRAVERSE_TAB_NEXT);	}	Shell shell = getShell();	Menu menubar = shell.getMenuBar();	if (menubar == null || menubar.isDisposed())		return COM.S_OK;			int shellHandle = shell.handle;	OS.SetMenu(shellHandle, menubar.handle);	return COM.OleSetMenuDescriptor(0, shellHandle, 0, 0, 0);}