if (OS.IsWinCE) { if (parent != null) setMaximized (true); }
void createHandle () {	boolean embedded = handle != 0;		/*	* On Windows 98 and NT, setting a window to be the	* top most window using HWND_TOPMOST can result in a	* parent dialog shell being moved behind its parent	* if the dialog has a sibling that is currently on top	* This only occurs using SetWindowPos (), not when the	* handle is created.	*/	/*	* The following code is intentionally commented.	*///	if ((style & SWT.ON_TOP) != 0) display.lockActiveWindow = true;	super.createHandle ();	/*	* The following code is intentionally commented.	*///	if ((style & SWT.ON_TOP) != 0)  display.lockActiveWindow = false;		if (!embedded) {		int bits = OS.GetWindowLong (handle, OS.GWL_STYLE);			bits &= ~OS.WS_OVERLAPPED;			/*		* Note:  On WinCE PPC, enforce WS_CAPTION if SWT.TITLE 		* is set.  Don't set WS_POPUP, this would cause the shell		* not to have a title in the navigation bar.		*/		if (OS.IsWinCE) {			if ((style & SWT.TITLE) != 0) bits |= OS.WS_CAPTION;		} else {			bits |= OS.WS_POPUP;		}		if ((style & (SWT.TITLE | SWT.CLOSE)) == 0) bits &= ~OS.WS_CAPTION;		if ((style & SWT.NO_TRIM) == 0) {			if ((style & (SWT.BORDER | SWT.RESIZE)) == 0) bits |= OS.WS_BORDER;		}		OS.SetWindowLong (handle, OS.GWL_STYLE, bits);	}	if (OS.IsDBLocale) {		hIMC = OS.ImmCreateContext ();		if (hIMC != 0) OS.ImmAssociateContext (handle, hIMC);	}}