亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? shell.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
	if (parent != null) {		if (OS.IsWin95) return bits;		if ((OS.WIN32_MAJOR << 16 | OS.WIN32_MINOR) < (4 << 16 | 10)) {			return bits;		}	}	if ((style & SWT.ON_TOP) != 0) bits |= OS.WS_EX_TOPMOST;	return bits;}TCHAR windowClass () {	if (OS.IsSP) return DialogClass;	return parent != null ? DialogClass : super.windowClass ();}int windowProc () {	if (OS.IsSP) return DialogProc;	return parent != null ? DialogProc : super.windowProc ();}int widgetStyle () {	int bits = super.widgetStyle ();	if (handle != 0) return bits | OS.WS_CHILD;	bits &= ~OS.WS_CHILD;	/*	* Feature in WinCE.  Calling CreateWindowEx () with WS_OVERLAPPED	* and a parent window causes the new window to become a WS_CHILD of	* the parent instead of a dialog child.  The fix is to use WS_POPUP	* for a window with a parent.  	* 	* Feature in WinCE PPC.  A window without a parent with WS_POPUP	* always shows on top of the Pocket PC 'Today Screen'. The fix	* is to not set WS_POPUP for a window without a parent on WinCE	* devices.	* 	* NOTE: WS_POPUP causes CreateWindowEx () to ignore CW_USEDEFAULT	* and causes the default window location and size to be zero.	*/	if (OS.IsWinCE) {		if (OS.IsSP) return bits | OS.WS_POPUP;		return parent == null ? bits : bits | OS.WS_POPUP;	}		/*	* Use WS_OVERLAPPED for all windows, either dialog or top level	* so that CreateWindowEx () will respect CW_USEDEFAULT and set	* the default window location and size.	* 	* NOTE:  When a WS_OVERLAPPED window is created, Windows gives	* the new window WS_CAPTION style bits.  These two constants are	* as follows:	* 	* 	WS_OVERLAPPED = 0	* 	WS_CAPTION = WS_BORDER | WS_DLGFRAME	* 	*/	return bits | OS.WS_OVERLAPPED | OS.WS_CAPTION;}LRESULT WM_ACTIVATE (int wParam, int lParam) {	if (OS.IsPPC) {		/*		* Note: this does not work when we get WM_ACTIVATE prior		* to adding a listener.		*/		if (hooks (SWT.HardKeyDown) || hooks (SWT.HardKeyUp)) {			int fActive = wParam & 0xFFFF;			int hwnd = fActive != 0 ? handle : 0;			for (int bVk=OS.VK_APP1; bVk<=OS.VK_APP6; bVk++) {				OS.SHSetAppKeyWndAssoc ((byte) bVk, hwnd);			}		}		/* Restore SIP state when window is activated */		if ((wParam & 0xFFFF) != 0) {			OS.SHSipPreference (handle, psai.fSipUp == 0 ? OS.SIP_DOWN : OS.SIP_UP);		} 	}	/*	* Bug in Windows XP.  When a Shell is deactivated, the	* IME composition window does not go away. This causes	* repaint issues.  The fix is to close the IME ourselves	* when the Shell is deactivated.	* 	* Note.  When the Shell is reactivated, the text in the	* composition window has been lost.	*/	if ((OS.WIN32_MAJOR << 16 | OS.WIN32_MINOR) >= (5 << 16 | 1)) {		if ((wParam & 0xFFFF) == 0 && OS.IsDBLocale && hIMC != 0) {			OS.ImmSetOpenStatus (hIMC, false);		}	}		LRESULT result = super.WM_ACTIVATE (wParam, lParam);	if (parent != null) return LRESULT.ZERO;	return result;}LRESULT WM_COMMAND (int wParam, int lParam) {	if (OS.IsPPC) {		/*		* Note in WinCE PPC:  Close the Shell when the "Done Button" has		* been pressed. lParam is either 0 (PocketPC 2002) or the handle		* to the Shell (PocketPC).		*/		int loWord = wParam & 0xFFFF;		if (loWord == OS.IDOK && (lParam == 0 || lParam == handle)) {			OS.PostMessage (handle, OS.WM_CLOSE, 0, 0);			return LRESULT.ZERO;					}	}	/*	* Feature in Windows.  On PPC, the menu is not actually an HMENU.	* By observation, it is a tool bar that is configured to look like	* a menu.  Therefore, when the PPC menu sends WM_COMMAND messages,	* lParam is not zero because the WM_COMMAND was not sent from a menu.	* Sub menu item events originate from the menu bar.  Top menu items	* events originate from a tool bar.  The fix is to detect the source	* of the WM_COMMAND and set lParam to zero to pretend that the message	* came from a real Windows menu, not a tool bar.	*/	if (OS.IsPPC || OS.IsSP) {		if (menuBar != null) {			int hwndCB = menuBar.hwndCB;			if (lParam != 0 && hwndCB != 0) {				if (lParam == hwndCB) {					return super.WM_COMMAND (wParam, 0);				} else {					int hwndChild = OS.GetWindow (hwndCB, OS.GW_CHILD);					if (lParam == hwndChild) return super.WM_COMMAND (wParam, 0);									}			}		}	}	return super.WM_COMMAND (wParam, lParam);}LRESULT WM_DESTROY (int wParam, int lParam) {	LRESULT result = super.WM_DESTROY (wParam, lParam);	/*	* When the shell is a WS_CHILD window of a non-SWT	* window, the destroy code does not get called because	* the non-SWT window does not call dispose ().  Instead,	* the destroy code is called here in WM_DESTROY.	*/	int bits = OS.GetWindowLong (handle, OS.GWL_STYLE);	if ((bits & OS.WS_CHILD) != 0) {		releaseChild ();		releaseResources ();	}	return result;}LRESULT WM_ENTERIDLE (int wParam, int lParam) {	LRESULT result = super.WM_ENTERIDLE (wParam, lParam);	if (result != null) return result;	if (display.runAsyncMessages ()) display.wakeThread ();	return result;}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;}LRESULT WM_NCHITTEST (int wParam, int lParam) {	if (!OS.IsWindowEnabled (handle)) return null;	if (!isEnabled () || !isActive ()) {		if (!Display.TrimEnabled) return new LRESULT (OS.HTNOWHERE);		int hittest = callWindowProc (OS.WM_NCHITTEST, wParam, lParam);		if (hittest == OS.HTCLIENT || hittest == OS.HTMENU) hittest = OS.HTBORDER;		return new LRESULT (hittest);	}	if (menuBar != null && !menuBar.getEnabled ()) {		int hittest = callWindowProc (OS.WM_NCHITTEST, wParam, lParam);		if (hittest == OS.HTMENU) hittest = OS.HTBORDER;		return new LRESULT (hittest);	}	return null;}LRESULT WM_NCLBUTTONDOWN (int wParam, int lParam) {	LRESULT result = super.WM_NCLBUTTONDOWN (wParam, lParam);	if (result != null) return result;	/*	* When the normal activation was interruped in WM_MOUSEACTIVATE	* because the active shell was an MDI shell, set the active window	* to the top level shell but lock the active window and stop focus	* changes.  This allows the user to interact the top level shell	* in the normal manner.	*/	if (!display.ignoreRestoreFocus) return result;	Display display = this.display;	int hwndActive = 0;	boolean fixActive = OS.IsWin95 && display.lastHittest == OS.HTCAPTION;	if (fixActive) hwndActive = OS.SetActiveWindow (handle);	display.lockActiveWindow = true;	int code = callWindowProc (OS.WM_NCLBUTTONDOWN, wParam, lParam);	display.lockActiveWindow = false;	if (fixActive) OS.SetActiveWindow (hwndActive);	Control focusControl = display.lastHittestControl;	if (focusControl != null && !focusControl.isDisposed ()) {		focusControl.setFocus ();	}	display.lastHittestControl = null;	display.ignoreRestoreFocus = false;	return new LRESULT (code);}LRESULT WM_PALETTECHANGED (int wParam, int lParam) {	if (wParam != handle) {		int hPalette = display.hPalette;		if (hPalette != 0) return selectPalette (hPalette);	}	return super.WM_PALETTECHANGED (wParam, lParam);}LRESULT WM_QUERYNEWPALETTE (int wParam, int lParam) {	int hPalette = display.hPalette;	if (hPalette != 0) return selectPalette (hPalette);	return super.WM_QUERYNEWPALETTE (wParam, lParam);}LRESULT WM_SETCURSOR (int wParam, int lParam) {	/*	* Feature in Windows.  When the shell is disabled	* by a Windows standard dialog (like a MessageBox	* or FileDialog), clicking in the shell does not	* bring the shell or the dialog to the front. The	* fix is to detect this case and bring the shell	* forward.	*/	int msg = (short) (lParam >> 16);	if (msg == OS.WM_LBUTTONDOWN) {		if (!Display.TrimEnabled) {			Shell modalShell = display.getModalShell ();			if (modalShell != null && !isActive ()) {				int hwndModal = modalShell.handle;				if (OS.IsWindowEnabled (hwndModal)) {					OS.SetActiveWindow (hwndModal);				}			}		}		if (!OS.IsWindowEnabled (handle)) {			if (!OS.IsWinCE) {				int hwndPopup = OS.GetLastActivePopup (handle);				if (hwndPopup != 0 && hwndPopup != handle) {					if (display.getControl (hwndPopup) == null) {						if (OS.IsWindowEnabled (hwndPopup)) {							OS.SetActiveWindow (hwndPopup);						}					}				}			}		}	}	/*	* When the shell that contains a cursor is disabled,	* WM_SETCURSOR is called with HTERROR.  Normally,	* when a control is disabled, the parent will get	* mouse and cursor events.  In the case of a disabled	* shell, there is no enabled parent.  In order to	* show the cursor when a shell is disabled, it is	* necessary to override WM_SETCURSOR when called	* with HTERROR to set the cursor but only when the	* mouse is in the client area of the shell.	*/	int hitTest = (short) (lParam & 0xFFFF);	if (hitTest == OS.HTERROR) {		if (!getEnabled ()) {			Control control = display.getControl (wParam);			if (control == this && cursor != null) {				POINT pt = new POINT ();				if (OS.GetCursorPos (pt)) {					OS.ScreenToClient (handle, pt);					RECT rect = new RECT ();					OS.GetClientRect (handle, rect);					if (OS.PtInRect (rect, pt)) {						OS.SetCursor (cursor.handle);						switch (msg) {							case OS.WM_LBUTTONDOWN:							case OS.WM_RBUTTONDOWN:							case OS.WM_MBUTTONDOWN:								OS.MessageBeep (OS.MB_OK);						}						return LRESULT.ONE;					}				}			}		}	}	return super.WM_SETCURSOR (wParam, lParam);}LRESULT WM_SETTINGCHANGE (int wParam, int lParam) {	LRESULT result = super.WM_SETTINGCHANGE (wParam, lParam);	if (result != null) return result;	if (OS.IsPPC) {		if (wParam == OS.SPI_SETSIPINFO) {			/* 			* The SIP is in a new state.  Cache its new value.			* Resize the Shell if it has the style SWT.RESIZE.			* Note that SHHandleWMSettingChange resizes the			* Shell and also updates the cached state.			*/			if ((style & SWT.RESIZE) != 0) {				OS.SHHandleWMSettingChange (handle, wParam, lParam, psai);				return LRESULT.ZERO;			} else {				SIPINFO pSipInfo = new SIPINFO ();				pSipInfo.cbSize = SIPINFO.sizeof;				OS.SipGetInfo (pSipInfo);				psai.fSipUp = pSipInfo.fdwFlags & OS.SIPF_ON;								}		}	}	return result;}LRESULT WM_SHOWWINDOW (int wParam, int lParam) {	LRESULT result = super.WM_SHOWWINDOW (wParam, lParam);	if (result != null) return result;	/*	* Bug in Windows.  If the shell is hidden while the parent	* is iconic,  Windows shows the shell when the parent is	* deiconified.  This does not happen if the shell is hidden	* while the parent is not an icon.  The fix is to track	* visible state for the shell and refuse to show the shell	* when the parent is shown.	*/	if (lParam == OS.SW_PARENTOPENING) {		Control control = this;		while (control != null) {			Shell shell = control.getShell ();			if (!shell.showWithParent) return LRESULT.ZERO;			control = control.parent;		}	}	return result;}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜臀av亚洲一区中文字幕| 国产精品免费看片| 欧美在线观看视频一区二区| 成人丝袜视频网| 高清成人免费视频| 国产成人av电影在线| 高清成人免费视频| 91在线视频官网| 在线欧美一区二区| 欧美日韩成人激情| 精品久久久久久久人人人人传媒| 日韩欧美一区二区不卡| 26uuu亚洲| 中文字幕乱码亚洲精品一区| 亚洲欧美经典视频| 亚洲福利视频一区| 日本不卡一二三| 国产精品456露脸| 99久久夜色精品国产网站| 91麻豆高清视频| 日韩小视频在线观看专区| 久久久国产综合精品女国产盗摄| 国产精品欧美一区喷水| 夜夜精品视频一区二区| 久久精品国产一区二区三区免费看 | 国产欧美一区二区三区在线老狼 | 99久久国产免费看| 91网页版在线| 日韩欧美国产三级| 中文字幕一区二区三区四区不卡| 亚洲精品视频自拍| 九九**精品视频免费播放| 成人黄色一级视频| 在线成人午夜影院| 国产精品国产三级国产三级人妇| 亚洲国产va精品久久久不卡综合| 精品一区二区在线免费观看| 91在线视频18| 精品美女一区二区三区| 日韩美女精品在线| 麻豆91在线看| 欧美性大战久久| 欧美国产日韩在线观看| 丝袜美腿亚洲综合| 色综合天天综合在线视频| 欧美日韩视频第一区| 精品国产一区二区三区不卡| 亚洲美女淫视频| 风间由美性色一区二区三区| 日韩欧美国产成人一区二区| 一区二区三区色| 成人app在线| 久久久久亚洲蜜桃| 免费美女久久99| 精品视频一区三区九区| 亚洲三级久久久| 成人av免费在线观看| 久久久五月婷婷| 久久99精品国产麻豆不卡| 欧美另类z0zxhd电影| 亚洲免费观看高清完整版在线观看 | 成人av在线资源| 国产丝袜在线精品| 精品伊人久久久久7777人| 欧美高清视频在线高清观看mv色露露十八 | 国产综合一区二区| 欧美一区二区三区在线观看视频| 一级做a爱片久久| 日本乱人伦aⅴ精品| 亚洲欧美日韩电影| 色久优优欧美色久优优| 亚洲精品成人少妇| 欧美在线看片a免费观看| 亚洲色图欧美在线| 91亚洲精品一区二区乱码| 欧美国产日韩a欧美在线观看 | 亚洲欧美综合网| 不卡的av电影| 亚洲一区二区高清| 欧美日韩亚洲不卡| 亚洲国产精品久久艾草纯爱| 欧美在线免费视屏| 日本午夜精品一区二区三区电影| 日韩一区二区三区高清免费看看| 美日韩一区二区| 久久综合久久鬼色中文字| 国产精品一区三区| 中文字幕一区二区三区四区不卡| 91香蕉视频在线| 亚洲欧美日韩国产手机在线| 欧美人伦禁忌dvd放荡欲情| 免费精品视频最新在线| 久久嫩草精品久久久久| www.亚洲色图.com| 亚洲二区视频在线| 精品国产乱码久久久久久影片| 国产伦精品一区二区三区视频青涩| 国产日韩欧美a| 色噜噜狠狠色综合中国| 美腿丝袜亚洲色图| 国产精品美女久久久久久2018| 色噜噜狠狠成人中文综合| 蜜臀久久99精品久久久久久9| 久久人人爽人人爽| 91国模大尺度私拍在线视频| 七七婷婷婷婷精品国产| 国产精品天天看| 欧美日本高清视频在线观看| 国产伦精品一区二区三区免费| 一区二区在线观看视频| 日韩无一区二区| 99久久国产综合色|国产精品| 日韩不卡一二三区| 中文字幕一区三区| 欧美白人最猛性xxxxx69交| 91热门视频在线观看| 麻豆国产精品一区二区三区 | 成人免费视频caoporn| 香蕉成人伊视频在线观看| 国产欧美日韩在线观看| 欧美日韩高清一区二区不卡| 成人午夜大片免费观看| 蜜臀av一区二区三区| 一区二区在线观看视频| 国产精品精品国产色婷婷| 日韩一级免费一区| 欧美三级视频在线观看| 91蜜桃婷婷狠狠久久综合9色| 久久er99热精品一区二区| 亚洲一区二区不卡免费| 国产精品不卡一区二区三区| 久久蜜桃av一区二区天堂| 欧美一区二区视频观看视频| 精品视频在线免费观看| 色噜噜狠狠成人网p站| 91在线视频观看| 盗摄精品av一区二区三区| 国内一区二区在线| 久久精品国产久精国产爱| 午夜久久久影院| 亚洲午夜精品网| 亚洲一区二区偷拍精品| 亚洲激情欧美激情| 亚洲激情校园春色| 国产精品看片你懂得| 国产欧美日韩精品在线| 久久久久亚洲蜜桃| 国产丝袜欧美中文另类| 日本一区二区动态图| 国产精品免费视频观看| 国产精品国产三级国产aⅴ中文| 国产欧美精品一区二区色综合朱莉 | 天堂一区二区在线| 日日夜夜精品视频天天综合网| 亚洲1区2区3区4区| 免费久久精品视频| 激情av综合网| 国产精品夜夜爽| 成人禁用看黄a在线| 91色porny| 欧美巨大另类极品videosbest | 久久国产精品无码网站| 免费在线观看一区二区三区| 日本伊人色综合网| 欧美aaaaaa午夜精品| 黄一区二区三区| 国产成人av一区二区三区在线观看| 成人自拍视频在线观看| 成人h版在线观看| 欧美无砖砖区免费| 欧美成人女星排行榜| 久久久亚洲国产美女国产盗摄| 国产精品久久久久影视| 一区二区三区欧美在线观看| 琪琪一区二区三区| 国产suv精品一区二区883| 99久久国产综合精品麻豆| 欧美日韩国产免费一区二区| 久久久久综合网| 亚洲国产精品久久久久秋霞影院| 免费高清成人在线| 国产麻豆精品在线观看| 在线观看欧美精品| 亚洲精品在线免费播放| 最近日韩中文字幕| 美女在线观看视频一区二区| 不卡的av网站| 日韩一区和二区| 亚洲激情在线播放| 国产美女精品一区二区三区| 欧美午夜精品一区二区蜜桃 | 欧美中文字幕一区二区三区亚洲| 欧美一二区视频| 中文字幕亚洲视频| 国内精品国产三级国产a久久 | 美女视频黄久久| 色综合久久久久综合| 亚洲精品在线网站| 亚洲高清免费在线| 99久久久免费精品国产一区二区 |