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

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

?? decorations.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
		if (((state & HIDDEN) == 0) == visible) return;	} else {		if (visible == OS.IsWindowVisible (handle)) return;	}	if (visible) {		/*		* It is possible (but unlikely), that application		* code could have disposed the widget in the show		* event.  If this happens, just return.		*/		sendEvent (SWT.Show);		if (isDisposed ()) return;		if (OS.IsHPC) {			if (menuBar != null) {				int hwndCB = menuBar.hwndCB;				OS.CommandBar_DrawMenuBar (hwndCB, 0);			}		}		if (drawCount != 0) {			state &= ~HIDDEN;		} else {			if (OS.IsWinCE) {				OS.ShowWindow (handle, OS.SW_SHOW);			} else {				if (menuBar != null) {					display.removeBar (menuBar);					OS.DrawMenuBar (handle);				}				OS.ShowWindow (handle, swFlags);			}			OS.UpdateWindow (handle);		}	} else {		if (!OS.IsWinCE) {			if (OS.IsIconic (handle)) {				swFlags = OS.SW_SHOWMINNOACTIVE;			} else {				if (OS.IsZoomed (handle)) {					swFlags = OS.SW_SHOWMAXIMIZED;				} else {					if (handle == OS.GetActiveWindow ()) {						swFlags = OS.SW_RESTORE;					} else {						swFlags = OS.SW_SHOWNOACTIVATE;					}				}			}		}		if (drawCount != 0) {			state |= HIDDEN;		} else {			OS.ShowWindow (handle, OS.SW_HIDE);		}		/*		* It is possible (but unlikely), that application		* code could have disposed the widget in an event		* triggered by ShowWindow().  If this happens, just		* return.		*/		if (isDisposed ()) return;		sendEvent (SWT.Hide);	}}boolean translateAccelerator (MSG msg) {	if (!isEnabled () || !isActive ()) return false;	if (menuBar != null && !menuBar.isEnabled ()) return false;	if (translateMDIAccelerator (msg) || translateMenuAccelerator (msg)) return true;	Decorations decorations = parent.menuShell ();	return decorations.translateAccelerator (msg);}boolean translateMenuAccelerator (MSG msg) {	if (hAccel == -1) createAccelerators ();	return hAccel != 0 && OS.TranslateAccelerator (handle, hAccel, msg) != 0;}boolean translateMDIAccelerator (MSG msg) {	if (!(this instanceof Shell)) {		Shell shell = getShell ();		int hwndMDIClient = shell.hwndMDIClient;		if (hwndMDIClient != 0 && OS.TranslateMDISysAccel (hwndMDIClient, msg)) {			return true;		}		if (msg.message == OS.WM_KEYDOWN) {			if (OS.GetKeyState (OS.VK_CONTROL) >= 0) return false;			switch (msg.wParam) {				case OS.VK_F4:					OS.PostMessage (handle, OS.WM_CLOSE, 0, 0);					return true;				case OS.VK_F6:					if (traverseDecorations (true)) return true;			}			return false;		}		if (msg.message == OS.WM_SYSKEYDOWN) {			switch (msg.wParam) {				case OS.VK_F4:					OS.PostMessage (shell.handle, OS.WM_CLOSE, 0, 0);					return true;			}			return false;		}	}	return false;}boolean traverseDecorations (boolean next) {	Control [] children = parent._getChildren ();	int length = children.length;	int index = 0;	while (index < length) {		if (children [index] == this) break;		index++;	}	/*	* It is possible (but unlikely), that application	* code could have disposed the widget in focus in	* or out events.  Ensure that a disposed widget is	* not accessed.	*/	int start = index, offset = (next) ? 1 : -1;	while ((index = (index + offset + length) % length) != start) {		Control child = children [index];		if (!child.isDisposed () && child instanceof Decorations) {			if (child.setFocus ()) return true;		}	}	return false;}boolean traverseItem (boolean next) {	return false;}boolean traverseReturn () {	if (defaultButton == null || defaultButton.isDisposed ()) return false;	if (!defaultButton.isVisible () || !defaultButton.isEnabled ()) return false;	defaultButton.click ();	return true;}CREATESTRUCT widgetCreateStruct () {	return new CREATESTRUCT ();}int widgetExtStyle () {	int bits = super.widgetExtStyle () | OS.WS_EX_MDICHILD;	bits &= ~OS.WS_EX_CLIENTEDGE;	if ((style & SWT.NO_TRIM) != 0) return bits;	if (OS.IsPPC) {		if ((style & SWT.CLOSE) != 0) bits |= OS.WS_EX_CAPTIONOKBTN;	}	if ((style & SWT.TOOL) != 0) bits |= OS.WS_EX_TOOLWINDOW;	if ((style & SWT.RESIZE) != 0) return bits;	if ((style & SWT.BORDER) != 0) bits |= OS.WS_EX_DLGMODALFRAME;	return bits;}int widgetParent () {	Shell shell = getShell ();	return shell.hwndMDIClient ();}int widgetStyle () {	/* 	* Clear WS_VISIBLE and WS_TABSTOP.  NOTE: In Windows, WS_TABSTOP	* has the same value as WS_MAXIMIZEBOX so these bits cannot be	* used to control tabbing.	*/	int bits = super.widgetStyle () & ~(OS.WS_TABSTOP | OS.WS_VISIBLE);		/* Set the title bits and no-trim bits */	bits &= ~OS.WS_BORDER;	if ((style & SWT.NO_TRIM) != 0) return bits;	if ((style & SWT.TITLE) != 0) bits |= OS.WS_CAPTION;		/* Set the min and max button bits */	if ((style & SWT.MIN) != 0) bits |= OS.WS_MINIMIZEBOX;	if ((style & SWT.MAX) != 0) bits |= OS.WS_MAXIMIZEBOX;		/* Set the resize, dialog border or border bits */	if ((style & SWT.RESIZE) != 0) {		/*		* Note on WinCE PPC.  SWT.RESIZE is used to resize		* the Shell according to the state of the IME.		* It does not set the WS_THICKFRAME style.		*/		if (!OS.IsPPC) bits |= OS.WS_THICKFRAME;		} else {		if ((style & SWT.BORDER) == 0) bits |= OS.WS_BORDER;	}	/* Set the system menu and close box bits */	if (!OS.IsPPC && !OS.IsSP) {		if ((style & SWT.CLOSE) != 0) bits |= OS.WS_SYSMENU;	}		return bits;}int windowProc (int hwnd, int msg, int wParam, int lParam) {	switch (msg) {		case Display.SWT_GETACCEL:		case Display.SWT_GETACCELCOUNT:			if (hAccel == -1) createAccelerators ();			return msg == Display.SWT_GETACCELCOUNT ? nAccel : hAccel;	}	return super.windowProc (hwnd, msg, wParam, lParam);}LRESULT WM_ACTIVATE (int wParam, int lParam) {	LRESULT result = super.WM_ACTIVATE (wParam, lParam);	if (result != null) return result;	if ((wParam & 0xFFFF) != 0) {		/*		* When the high word of wParam is non-zero, the activation		* state of the window is being changed while the window is		* minimized. If this is the case, do not report activation		* events or restore the focus.		*/		if ((wParam >> 16) != 0) return result;		/*		* It is possible (but unlikely), that application		* code could have disposed the widget in the activate		* event.  If this happens, end the processing of the		* Windows message by returning zero as the result of		* the window proc.		*/		Control control = display.findControl (lParam);		if (control == null || control instanceof Shell) {			if (this instanceof Shell) {				sendEvent (SWT.Activate);				if (isDisposed ()) return LRESULT.ZERO;			}		}		if (restoreFocus ()) return LRESULT.ZERO;		} else {		/*		* It is possible (but unlikely), that application		* code could have disposed the widget in the deactivate		* event.  If this happens, end the processing of the		* Windows message by returning zero as the result of		* the window proc.		*/		Control control = display.findControl (lParam);		if (control == null || control instanceof Shell) {			if (this instanceof Shell) {				Shell shell = getShell ();				shell.setActiveControl (null);				if (isDisposed ()) return LRESULT.ZERO;				sendEvent (SWT.Deactivate);				if (isDisposed ()) return LRESULT.ZERO;			}		}		saveFocus ();	}	return result;}LRESULT WM_CLOSE (int wParam, int lParam) {	LRESULT result = super.WM_CLOSE (wParam, lParam);	if (result != null) return result;	if (!isEnabled () || !isActive ()) return LRESULT.ZERO;	Event event = new Event ();	sendEvent (SWT.Close, event);	// the widget could be disposed at this point	if (event.doit && !isDisposed ()) dispose ();	return LRESULT.ZERO;}LRESULT WM_HOTKEY (int wParam, int lParam) {	LRESULT result = super.WM_HOTKEY (wParam, lParam);	if (result != null) return result;	if (OS.IsSP) {		/*		* Feature on WinCE SP.  The Back key is either used to close		* the foreground Dialog or used as a regular Back key in an EDIT		* control. The article 'Back Key' in MSDN for Smartphone 		* describes how an application should handle it.  The 		* workaround is to override the Back key when creating		* the menubar and handle it based on the style of the Shell.		* If the Shell has the SWT.CLOSE style, close the Shell.		* Otherwise, send the Back key to the window with focus.		*/		if (((lParam >> 16) & 0xFFFF) == OS.VK_ESCAPE) {			if ((style & SWT.CLOSE) != 0) {				OS.PostMessage (handle, OS.WM_CLOSE, 0, 0);			} else {				OS.SHSendBackToFocusWindow (OS.WM_HOTKEY, wParam, lParam);			}			return LRESULT.ZERO;		}	}	return result;}LRESULT WM_KILLFOCUS (int wParam, int lParam) {	LRESULT result  = super.WM_KILLFOCUS (wParam, lParam);	saveFocus ();	return result;}LRESULT WM_NCACTIVATE (int wParam, int lParam) {	LRESULT result = super.WM_NCACTIVATE (wParam, lParam);	if (result != null) return result;	if (wParam == 0) {		if (display.lockActiveWindow) return LRESULT.ZERO;		Control control = display.findControl (lParam);		if (control != null) {			Shell shell = getShell ();			Decorations decorations = control.menuShell ();			if (decorations.getShell () == shell) {				if (this instanceof Shell) return LRESULT.ONE;				if (display.ignoreRestoreFocus) {					if (display.lastHittest != OS.HTCLIENT) {						result = LRESULT.ONE;					}				}			}		}	}	if (!(this instanceof Shell)) {		int hwndShell = getShell().handle;		OS.SendMessage (hwndShell, OS.WM_NCACTIVATE, wParam, lParam);	}	return result;}LRESULT WM_QUERYOPEN (int wParam, int lParam) {	LRESULT result = super.WM_QUERYOPEN (wParam, lParam);	if (result != null) return result;	sendEvent (SWT.Deiconify);	// widget could be disposed at this point	return result;}LRESULT WM_SETFOCUS (int wParam, int lParam) {	LRESULT result = super.WM_SETFOCUS (wParam, lParam);	if (savedFocus != this) restoreFocus ();	return result;}LRESULT WM_SIZE (int wParam, int lParam) {	LRESULT result = super.WM_SIZE (wParam, lParam);	/*	* It is possible (but unlikely), that application	* code could have disposed the widget in the resize	* event.  If this happens, end the processing of the	* Windows message by returning the result of the	* WM_SIZE message.	*/	if (isDisposed ()) return result;	if (wParam == OS.SIZE_MINIMIZED) {		sendEvent (SWT.Iconify);		// widget could be disposed at this point	}	return result;}LRESULT WM_SYSCOMMAND (int wParam, int lParam) {	LRESULT result = super.WM_SYSCOMMAND (wParam,lParam);	if (result != null) return result;	if (!(this instanceof Shell)) {		int cmd = wParam & 0xFFF0;		switch (cmd) {			case OS.SC_CLOSE: {				OS.PostMessage (handle, OS.WM_CLOSE, 0, 0);				return LRESULT.ZERO;			}			case OS.SC_NEXTWINDOW: {				traverseDecorations (true);				return LRESULT.ZERO;			}		}	}	return result;}LRESULT WM_WINDOWPOSCHANGING (int wParam, int lParam) {	LRESULT result = super.WM_WINDOWPOSCHANGING (wParam,lParam);	if (result != null) return result;	if (display.lockActiveWindow) {		WINDOWPOS lpwp = new WINDOWPOS ();		OS.MoveMemory (lpwp, lParam, WINDOWPOS.sizeof);		lpwp.flags |= OS.SWP_NOZORDER;		OS.MoveMemory (lParam, lpwp, WINDOWPOS.sizeof);	}	return result;}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩高清不卡| 午夜久久电影网| 亚洲国产成人自拍| 亚洲人午夜精品天堂一二香蕉| 亚洲国产欧美日韩另类综合| 极品少妇xxxx偷拍精品少妇| 国产福利精品导航| 在线电影院国产精品| 国产精品久久精品日日| 婷婷综合另类小说色区| 777精品伊人久久久久大香线蕉| 国产欧美日韩三区| 日韩av一区二区三区四区| 国产成人欧美日韩在线电影| 国产精品国产三级国产aⅴ入口 | 欧美成人国产一区二区| 亚洲图片欧美激情| 精品一区二区免费在线观看| 国产丝袜欧美中文另类| 免费成人在线影院| 在线成人av影院| 国产在线精品视频| 日韩女优电影在线观看| 午夜电影一区二区三区| 久久综合资源网| 日韩av二区在线播放| 久久久久亚洲蜜桃| 九九九久久久精品| 国产精品久久久久一区| 欧美精品丝袜中出| 大桥未久av一区二区三区中文| 777亚洲妇女| 国产成人午夜精品影院观看视频| 亚洲一区二区不卡免费| 色综合久久久久| 中文字幕电影一区| 欧美精品黑人性xxxx| 国产成人精品1024| 日韩电影在线观看电影| 国产精品久久久久久久午夜片 | 日韩av二区在线播放| 国产精品区一区二区三| 波波电影院一区二区三区| 久久亚洲一级片| 欧美亚洲综合色| 亚洲影视在线观看| 亚洲国产精品黑人久久久| 69久久夜色精品国产69蝌蚪网| 色婷婷综合久久久久中文| 国产毛片精品视频| 日韩成人伦理电影在线观看| 一区二区三区中文字幕在线观看| 欧美亚一区二区| 成人福利视频网站| 亚洲无线码一区二区三区| 中文字幕中文在线不卡住| 2014亚洲片线观看视频免费| 91精品国模一区二区三区| 91精品1区2区| 蜜桃视频一区二区| 国产日韩欧美电影| 久久综合久久综合久久| 91精品国产综合久久久蜜臀图片| 色噜噜久久综合| 成人成人成人在线视频| 成人综合婷婷国产精品久久| 国产在线看一区| 亚洲免费观看在线视频| 国产精品女人毛片| 久久久九九九九| 国产亚洲福利社区一区| 久久影院午夜片一区| 欧美精品一区二区三区一线天视频 | 在线观看av一区二区| 蜜臀va亚洲va欧美va天堂| 亚洲成av人**亚洲成av**| 久久在线观看免费| 精品国产sm最大网站免费看| 日韩午夜av电影| av男人天堂一区| proumb性欧美在线观看| eeuss鲁片一区二区三区| 成人国产亚洲欧美成人综合网 | 亚洲人一二三区| 一区二区三区资源| 午夜电影久久久| 日韩av电影免费观看高清完整版 | 精品日韩99亚洲| 精品成人佐山爱一区二区| 欧美精品一区二区三区蜜桃视频| 精品国产凹凸成av人导航| 久久久久久久久久美女| 中文字幕视频一区二区三区久| 欧美电影免费观看高清完整版 | 中文字幕精品—区二区四季| 国产精品美女视频| 亚洲另类在线一区| 国产偷v国产偷v亚洲高清| 欧美韩国一区二区| 亚洲精品亚洲人成人网在线播放| 亚洲主播在线播放| 蜜臀精品一区二区三区在线观看| 国产一区二区三区美女| 91婷婷韩国欧美一区二区| 国精产品一区一区三区mba桃花| 国产一区视频网站| 91视视频在线观看入口直接观看www | 亚洲精品国产精华液| 午夜伊人狠狠久久| 国产高清不卡一区二区| 色999日韩国产欧美一区二区| 5月丁香婷婷综合| 亚洲国产高清aⅴ视频| 亚洲大片精品永久免费| 国产在线不卡一卡二卡三卡四卡| 成人国产精品视频| 91麻豆精品91久久久久同性| 国产精品美女久久久久久久久久久| 一区二区三区精品视频在线| 精品在线观看免费| 色噜噜夜夜夜综合网| 精品国产一区二区在线观看| 亚洲视频一区二区在线观看| 日本不卡视频在线| 91麻豆免费在线观看| 欧美大片顶级少妇| 亚洲自拍与偷拍| 国产 欧美在线| 岛国精品一区二区| 日韩一级大片在线| 亚洲免费观看高清在线观看| 国产精品综合视频| 高清成人在线观看| 欧美精品丝袜中出| 中文字幕一区二区三区乱码在线 | 亚洲一区在线观看免费| 国产露脸91国语对白| 欧美另类变人与禽xxxxx| 国产精品久久久一本精品| 久久精品国产99久久6| 国产福利91精品一区二区三区| 欧美日韩精品欧美日韩精品一综合| 国产精品视频观看| 日本中文字幕不卡| 欧美日韩国产一区| 夜夜嗨av一区二区三区中文字幕| 国产精品 日产精品 欧美精品| 91超碰这里只有精品国产| 悠悠色在线精品| 99久久精品免费看| 制服丝袜激情欧洲亚洲| 亚洲视频一区二区在线| 粉嫩av亚洲一区二区图片| 日韩久久免费av| 蜜桃一区二区三区在线观看| 欧美老女人第四色| 五月天亚洲精品| 欧美色国产精品| 久久美女高清视频| 精品亚洲国产成人av制服丝袜 | 94色蜜桃网一区二区三区| 久久女同精品一区二区| 久久精品免费看| 欧美不卡在线视频| 国产真实乱偷精品视频免| 欧美精品一区二区三区在线| 韩国成人精品a∨在线观看| 精品欧美一区二区在线观看| 麻豆国产精品视频| 欧美videofree性高清杂交| 看片的网站亚洲| 久久精品欧美日韩精品 | 中文字幕精品三区| 成人99免费视频| 国产精品国产精品国产专区不蜜| 成人av小说网| 亚洲视频网在线直播| 精品视频一区二区不卡| 日一区二区三区| 99久久伊人精品| 亚洲乱码中文字幕| 欧美中文字幕一区二区三区 | 精品国产伦一区二区三区观看体验 | 欧美日韩精品福利| 日韩精彩视频在线观看| 在线不卡的av| 老司机精品视频导航| 国产日韩欧美一区二区三区综合 | 韩国女主播一区二区三区| 久久久电影一区二区三区| 91最新地址在线播放| 午夜视频一区在线观看| 欧美成人精品3d动漫h| 成人午夜视频在线观看| 一区二区三区四区av| 日韩一区二区三区精品视频| 国产在线看一区| 亚洲综合色区另类av| 日韩欧美123| www.色综合.com|