setActiveControl (control);
LRESULT WM_MOUSEACTIVATE (int wParam, int lParam) {	LRESULT result = super.WM_MOUSEACTIVATE (wParam, lParam);	if (result != null) return result;		/*	* Check for WM_MOUSEACTIVATE when an MDI shell is active	* and stop the normal shell activation but allow the mouse	* down to be delivered.	*/	int hittest = (short) (lParam & 0xFFFF);	switch (hittest) {		case OS.HTERROR:		case OS.HTTRANSPARENT:		case OS.HTNOWHERE:			break;		default: {			Control control = display._getFocusControl ();			if (control != null) {				Decorations decorations = control.menuShell ();				if (decorations.getShell () == this && decorations != this) {					display.ignoreRestoreFocus = true;					display.lastHittest = hittest;					display.lastHittestControl = null;					if (hittest == OS.HTMENU || hittest == OS.HTSYSMENU) {						display.lastHittestControl = control;						return null;					}					if (OS.IsWin95 && hittest == OS.HTCAPTION) {						display.lastHittestControl = control;					}					return new LRESULT (OS.MA_NOACTIVATE);				}			}		}	}	if (hittest == OS.HTMENU) return null;		/*	* Get the current location of the cursor,	* not the location of the cursor when the	* WM_MOUSEACTIVATE was generated.  This is	* strictly incorrect but is necessary in	* order to support Activate and Deactivate	* events for embedded widgets that have	* their own event loop.  In that case, the	* cursor location reported by GetMessagePos	* is the one for our event loop, not the	* embedded widget's event loop.	*/	POINT pt = new POINT ();	if (!OS.GetCursorPos (pt)) {		int pos = OS.GetMessagePos ();		pt.x = (short) (pos & 0xFFFF);		pt.y = (short) (pos >> 16);	}	int hwnd = OS.WindowFromPoint (pt);	if (hwnd == 0) return null;	Control control = display.findControl (hwnd);	setActiveControl (control);		/*	* This code is intentionally commented.  On some platforms,	* shells that are created with SWT.NO_TRIM won't take focus	* when the user clicks in the client area or on the border.	* This behavior is usedful when emulating tool tip shells	* Until this behavior is specified, this code will remain	* commented.	*///	if ((style & SWT.NO_TRIM) != 0) {//		if (hittest == OS.HTBORDER || hittest == OS.HTCLIENT) {//			return new LRESULT (OS.MA_NOACTIVATE);//		}//	}	return null;}