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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? decorations.java

?? 源碼為Eclipse開源開發(fā)平臺桌面開發(fā)工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
public void setImage (Image image) {	checkWidget ();	if (image != null && image.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);	this.image = image;	setImages (image, null);}void setImages (Image image, Image [] images) {	/*	* Feature in WinCE.  WM_SETICON and WM_GETICON set the icon	* for the window class, not the window instance.  This means	* that it is possible to set an icon into a window and then	* later free the icon, thus freeing the icon for every window.	* The fix is to avoid the API.	* 	* On WinCE PPC, icons in windows are not displayed.	*/	if (OS.IsWinCE) return;	if (smallImage != null) smallImage.dispose ();	if (largeImage != null) largeImage.dispose ();	smallImage = largeImage = null;	int hSmallIcon = 0, hLargeIcon = 0;	Image smallIcon = null, largeIcon = null;	int smallWidth = 0x7FFFFFFF, largeWidth = 0x7FFFFFFF;	if (image != null) {		Rectangle rect = image.getBounds ();		smallWidth = Math.abs (rect.width - OS.GetSystemMetrics (OS.SM_CXSMICON));		smallIcon = image;		largeWidth = Math.abs (rect.width - OS.GetSystemMetrics (OS.SM_CXICON)); 		largeIcon = image;	}	if (images != null) {		for (int i = 0; i < images.length; i++) {			Rectangle rect = images [i].getBounds ();			int value = Math.abs (rect.width - OS.GetSystemMetrics (OS.SM_CXSMICON));			if (value < smallWidth) {				smallWidth = value;				smallIcon = images [i];			}			value = Math.abs (rect.width - OS.GetSystemMetrics (OS.SM_CXICON));			if (value < largeWidth) {				largeWidth = value;				largeIcon = images [i];			}		}	}	if (smallIcon != null) {		switch (smallIcon.type) {			case SWT.BITMAP:				ImageData data = smallIcon.getImageData ();				ImageData mask = data.getTransparencyMask ();				smallImage = new Image (display, data, mask);				hSmallIcon = smallImage.handle;				break;			case SWT.ICON:				hSmallIcon = smallIcon.handle;				break;		}	}	OS.SendMessage (handle, OS.WM_SETICON, OS.ICON_SMALL, hSmallIcon);	if (largeIcon != null) {		switch (largeIcon.type) {			case SWT.BITMAP:				ImageData data = largeIcon.getImageData ();				ImageData mask = data.getTransparencyMask ();				largeImage = new Image (display, data, mask);				hLargeIcon = largeImage.handle;				break;			case SWT.ICON:				hLargeIcon = largeIcon.handle;				break;		}	}	OS.SendMessage (handle, OS.WM_SETICON, OS.ICON_BIG, hLargeIcon);		/*	* Bug in Windows.  When WM_SETICON is used to remove an	* icon from the window trimmings for a window with the	* extended style bits WS_EX_DLGMODALFRAME, the window	* trimmings do not redraw to hide the previous icon.	* The fix is to force a redraw.	*/	if (!OS.IsWinCE) {		if (hSmallIcon == 0 && hLargeIcon == 0 && (style & SWT.BORDER) != 0) {			int flags = OS.RDW_FRAME | OS.RDW_INVALIDATE;			OS.RedrawWindow (handle, null, 0, flags);		}	}}/** * Sets the receiver's images to the argument, which may * be an empty array. Images are typically displayed by the * window manager when the instance is marked as iconified, * and may also be displayed somewhere in the trim when the * instance is in normal or maximized states. Depending where * the icon is displayed, the platform chooses the icon with * the "best" size. It is expected that the array will contain * the same icon rendered at different resolutions. *  * @param images the new image array * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the array of images is null</li> *    <li>ERROR_INVALID_ARGUMENT - if one of the images has been disposed</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> *  * @since 3.0 */public void setImages (Image [] images) {	checkWidget ();	if (images == null) error (SWT.ERROR_INVALID_ARGUMENT);	for (int i = 0; i < images.length; i++) {		if (images [i] == null || images [i].isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);	}	this.images = images;	setImages (null, images);}/** * Sets the maximized state of the receiver. * If the argument is <code>true</code> causes the receiver * to switch to the maximized state, and if the argument is * <code>false</code> and the receiver was previously maximized, * causes the receiver to switch back to either the minimized * or normal states. * <p> * Note: The result of intermixing calls to<code>setMaximized(true)</code> * and <code>setMinimized(true)</code> will vary by platform. Typically, * the behavior will match the platform user's expectations, but not * always. This should be avoided if possible. * </p> * * @param maximized the new maximized state * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @see #setMinimized */public void setMaximized (boolean maximized) {	checkWidget ();	swFlags = maximized ? OS.SW_SHOWMAXIMIZED : OS.SW_RESTORE;	if (OS.IsWinCE) {		/*		* Note: WinCE does not support SW_SHOWMAXIMIZED and SW_RESTORE. The		* workaround is to resize the window to fit the parent client area.		*/		if (maximized) {			RECT rect = new RECT ();			OS.SystemParametersInfo (OS.SPI_GETWORKAREA, 0, rect, 0);			int width = rect.right - rect.left, height = rect.bottom - rect.top;			if (OS.IsPPC) {				/* Leave space for the menu bar */				if (menuBar != null) {					int hwndCB = menuBar.hwndCB;					RECT rectCB = new RECT ();					OS.GetWindowRect (hwndCB, rectCB);					height -= rectCB.bottom - rectCB.top;				}			}			int flags = OS.SWP_NOZORDER | OS.SWP_DRAWFRAME | OS.SWP_NOACTIVATE;			SetWindowPos (handle, 0, rect.left, rect.top, width, height, flags);			}	} else {		if (!OS.IsWindowVisible (handle)) return;		if (maximized == OS.IsZoomed (handle)) return;		OS.ShowWindow (handle, swFlags);		OS.UpdateWindow (handle);	}}/** * Sets the receiver's menu bar to the argument, which * may be null. * * @param menu the new menu bar * * @exception IllegalArgumentException <ul> *    <li>ERROR_INVALID_ARGUMENT - if the menu has been disposed</li>  *    <li>ERROR_INVALID_PARENT - if the menu is not in the same widget tree</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public void setMenuBar (Menu menu) {	checkWidget ();	if (menuBar == menu) return;	if (menu != null) {		if (menu.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);		if ((menu.style & SWT.BAR) == 0) error (SWT.ERROR_MENU_NOT_BAR);		if (menu.parent != this) error (SWT.ERROR_INVALID_PARENT);	}		if (OS.IsWinCE) {		if (OS.IsHPC) {			boolean resize = menuBar != menu;			if (menuBar != null) OS.CommandBar_Show (menuBar.hwndCB, false);			menuBar = menu;			if (menuBar != null) OS.CommandBar_Show (menuBar.hwndCB, true);			if (resize) {				sendEvent (SWT.Resize);				layout (false);			}		} else {			if (OS.IsPPC) {				/*				* Note in WinCE PPC.  The menu bar is a separate popup window.				* If the shell is full screen, resize its window to leave				* space for the menu bar.				*/				boolean resize = getMaximized () && menuBar != menu;				if (menuBar != null) OS.ShowWindow (menuBar.hwndCB, OS.SW_HIDE);				menuBar = menu;				if (menuBar != null) OS.ShowWindow (menuBar.hwndCB, OS.SW_SHOW);				if (resize) setMaximized (true);			}			if (OS.IsSP) {				if (menuBar != null) OS.ShowWindow (menuBar.hwndCB, OS.SW_HIDE);				menuBar = menu;				if (menuBar != null) OS.ShowWindow (menuBar.hwndCB, OS.SW_SHOW);			}		} 	} else {		if (menu != null) display.removeBar (menu);		menuBar = menu;		int hMenu = menuBar != null ? menuBar.handle: 0;		OS.SetMenu (handle, hMenu);	}	destroyAccelerators ();}/** * Sets the minimized stated of the receiver. * If the argument is <code>true</code> causes the receiver * to switch to the minimized state, and if the argument is * <code>false</code> and the receiver was previously minimized, * causes the receiver to switch back to either the maximized * or normal states. * <p> * Note: The result of intermixing calls to<code>setMaximized(true)</code> * and <code>setMinimized(true)</code> will vary by platform. Typically, * the behavior will match the platform user's expectations, but not * always. This should be avoided if possible. * </p> * * @param minimized the new maximized state * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @see #setMaximized */public void setMinimized (boolean minimized) {	checkWidget ();	if (OS.IsWinCE) return;	swFlags = minimized ? OS.SW_SHOWMINNOACTIVE : OS.SW_RESTORE;	if (!OS.IsWindowVisible (handle)) return;	if (minimized == OS.IsIconic (handle)) return;	int flags = swFlags;	if (flags == OS.SW_SHOWMINNOACTIVE && handle == OS.GetActiveWindow ()) {		flags = OS.SW_MINIMIZE;	}	OS.ShowWindow (handle, flags);	OS.UpdateWindow (handle);}void setParent () {	/*	* In order for an MDI child window to support	* a menu bar, setParent () is needed to reset	* the parent.  Otherwise, the MDI child window	* will appear as a separate shell.  This is an	* undocumented and possibly dangerous Windows	* feature.	*/	int hwndParent = parent.handle;	display.lockActiveWindow = true;	OS.SetParent (handle, hwndParent);	if (!OS.IsWindowVisible (hwndParent)) {		OS.ShowWindow (handle, OS.SW_SHOWNA);	}	int bits = OS.GetWindowLong (handle, OS.GWL_STYLE);	bits &= ~OS.WS_CHILD;	OS.SetWindowLong (handle, OS.GWL_STYLE, bits | OS.WS_POPUP);	OS.SetWindowLong (handle, OS.GWL_ID, 0);	int flags = OS.SWP_NOSIZE | OS.SWP_NOMOVE | OS.SWP_NOACTIVATE; 	SetWindowPos (handle, OS.HWND_BOTTOM, 0, 0, 0, 0, flags);	display.lockActiveWindow = false;}void setPlacement (int x, int y, int width, int height, int flags) {	WINDOWPLACEMENT lpwndpl = new WINDOWPLACEMENT ();	lpwndpl.length = WINDOWPLACEMENT.sizeof;	OS.GetWindowPlacement (handle, lpwndpl);	lpwndpl.showCmd = OS.SW_SHOWNA;	if (OS.IsIconic (handle)) {		lpwndpl.showCmd = OS.SW_SHOWMINNOACTIVE;	} else {		if (OS.IsZoomed (handle)) {			lpwndpl.showCmd = OS.SW_SHOWMAXIMIZED;		}	}	if ((flags & OS.SWP_NOMOVE) == 0) {		lpwndpl.right = x + (lpwndpl.right - lpwndpl.left);		lpwndpl.bottom = y + (lpwndpl.bottom - lpwndpl.top);		lpwndpl.left = x;		lpwndpl.top = y;	}	if ((flags & OS.SWP_NOSIZE) == 0) {		lpwndpl.right = lpwndpl.left + width;		lpwndpl.bottom = lpwndpl.top + height;	}	OS.SetWindowPlacement (handle, lpwndpl);}void setSavedFocus (Control control) {	savedFocus = control;}void setSystemMenu () {	if (OS.IsWinCE) return;	int hMenu = OS.GetSystemMenu (handle, false);	if (hMenu == 0) return;	int oldCount = OS.GetMenuItemCount (hMenu);	if ((style & SWT.RESIZE) == 0) {		OS.DeleteMenu (hMenu, OS.SC_SIZE, OS.MF_BYCOMMAND);	}	if ((style & SWT.MIN) == 0) {		OS.DeleteMenu (hMenu, OS.SC_MINIMIZE, OS.MF_BYCOMMAND);	}	if ((style & SWT.MAX) == 0) {		OS.DeleteMenu (hMenu, OS.SC_MAXIMIZE, OS.MF_BYCOMMAND);	}	if ((style & (SWT.MIN | SWT.MAX)) == 0) {		OS.DeleteMenu (hMenu, OS.SC_RESTORE, OS.MF_BYCOMMAND);	}	int newCount = OS.GetMenuItemCount (hMenu);	if ((style & SWT.CLOSE) == 0 || newCount != oldCount) {			OS.DeleteMenu (hMenu, OS.SC_TASKLIST, OS.MF_BYCOMMAND);		MENUITEMINFO info = new MENUITEMINFO ();		info.cbSize = MENUITEMINFO.sizeof;		info.fMask = OS.MIIM_ID;		int index = 0;		while (index < newCount) {			if (OS.GetMenuItemInfo (hMenu, index, true, info)) {				if (info.wID == OS.SC_CLOSE) break;			}			index++;		}		if (index != newCount) {			OS.DeleteMenu (hMenu, index - 1, OS.MF_BYPOSITION);			if ((style & SWT.CLOSE) == 0) {				OS.DeleteMenu (hMenu, OS.SC_CLOSE, OS.MF_BYCOMMAND);			}		}	}}/** * Sets the receiver's text, which is the string that the * window manager will typically display as the receiver's * <em>title</em>, to the argument, which may not be null.  * * @param string the new text * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the text is null</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public void setText (String string) {	checkWidget ();	if (string == null) error (SWT.ERROR_NULL_ARGUMENT);	/* Use the character encoding for the default locale */	TCHAR buffer = new TCHAR (0, string, true);	OS.SetWindowText (handle, buffer);}public void setVisible (boolean visible) {	checkWidget ();	if (drawCount != 0) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费一级片91| 精品亚洲国内自在自线福利| 久久综合色8888| 欧美一级黄色录像| 欧美一区二区三区视频在线| 欧美美女一区二区三区| 欧美片网站yy| 欧美一区二区三区在线观看| 欧美二区在线观看| 日韩欧美国产午夜精品| 精品999在线播放| 国产精品三级在线观看| 1区2区3区精品视频| 亚洲图片欧美色图| 日本成人在线看| 精油按摩中文字幕久久| 国产电影一区二区三区| 91在线观看污| 欧美日韩dvd在线观看| 精品少妇一区二区三区视频免付费| 精品三级av在线| 中文字幕一区日韩精品欧美| 亚洲最大成人综合| 久久99国产精品久久99 | 亚洲精品日韩专区silk| 亚洲影视在线播放| 久久99精品久久久久久动态图| 国产91综合一区在线观看| 色综合久久久久综合体| 制服丝袜成人动漫| 国产精品乱码久久久久久| 亚洲国产欧美在线| 国产999精品久久久久久| 欧美性大战久久久久久久蜜臀 | 国产黄色精品视频| 色狠狠av一区二区三区| 日韩欧美一二三| 亚洲视频图片小说| 国产一区二区91| 欧美日韩精品一区视频| 国产欧美一区二区三区网站| 亚洲国产精品一区二区久久恐怖片 | 欧美精品123区| 欧美韩国日本不卡| 美女一区二区三区在线观看| 91在线国产福利| 欧美精品一区二区高清在线观看| 亚洲女爱视频在线| 国产乱人伦偷精品视频不卡| 欧美日韩亚洲另类| 亚洲欧美自拍偷拍| 国产高清无密码一区二区三区| 欧美日韩国产bt| 亚洲另类一区二区| 波多野结衣一区二区三区| 欧美成人a视频| 亚洲美女免费在线| 国产尤物一区二区| 欧美一级在线观看| 亚瑟在线精品视频| 在线亚洲精品福利网址导航| 国产精品久久看| 国产成a人亚洲精品| 欧美成人高清电影在线| 免费在线看一区| 欧美乱熟臀69xxxxxx| 亚洲一二三区在线观看| 91在线精品一区二区| 国产精品毛片久久久久久| 成人免费视频视频| 国产精品区一区二区三区| 国产精品99久久久久久久女警| 精品国偷自产国产一区| 久久国产婷婷国产香蕉| 欧美一区二区成人6969| 日本午夜一区二区| 欧美一区二区三区在线观看| 日韩成人av影视| 欧美丰满嫩嫩电影| 亚洲成人一区二区在线观看| 色激情天天射综合网| 亚洲色图.com| 欧美日韩在线直播| 日本亚洲天堂网| 日韩欧美国产综合一区| 国产在线日韩欧美| 欧美高清在线一区| 色偷偷久久人人79超碰人人澡| 亚洲裸体xxx| 欧美天堂一区二区三区| 麻豆精品久久久| 国产视频911| 91丨porny丨国产| 午夜精品一区在线观看| 久久影院午夜片一区| 成人免费毛片app| 亚洲一区二区三区四区在线免费观看| 欧美性xxxxx极品少妇| 免费在线观看不卡| 国产精品久久久久天堂| 91福利国产成人精品照片| 日日噜噜夜夜狠狠视频欧美人| 精品久久一区二区三区| 成人三级伦理片| 亚洲综合丁香婷婷六月香| 制服视频三区第一页精品| 激情丁香综合五月| 亚洲视频一区二区在线| 日韩欧美亚洲一区二区| 波多野结衣在线一区| 日本美女一区二区| 国产午夜久久久久| 在线看国产一区二区| 国产精品中文字幕一区二区三区| 亚洲情趣在线观看| 日韩欧美国产wwwww| 99国产精品99久久久久久| 美腿丝袜在线亚洲一区| 一区二区三区在线免费视频| 精品处破学生在线二十三| 色婷婷av久久久久久久| 久久精品国产秦先生| 亚洲欧美日韩在线不卡| 久久精品视频在线看| 欧美日本韩国一区二区三区视频| 国产一区二区三区久久悠悠色av| 亚洲自拍欧美精品| 国产欧美日韩在线| 日韩免费视频一区二区| 欧美日韩中文字幕一区| av高清不卡在线| 精品一区二区三区免费视频| 午夜视频一区二区三区| 亚洲免费在线看| 中文字幕久久午夜不卡| 精品国产一区二区三区久久久蜜月| 欧洲一区二区三区在线| 99视频在线精品| 国产成人福利片| 精品制服美女久久| 免费看欧美美女黄的网站| 午夜精品国产更新| 一区av在线播放| 一区二区在线观看免费| 亚洲主播在线播放| 日本一区二区久久| 国产欧美精品在线观看| 久久免费电影网| 亚洲精品一区二区三区在线观看| 日韩视频一区二区三区在线播放| 色噜噜夜夜夜综合网| 色先锋资源久久综合| 色综合视频在线观看| 成人免费不卡视频| 成人成人成人在线视频| 99这里只有久久精品视频| 99久久国产综合精品麻豆| a在线播放不卡| 99re成人在线| 欧美午夜精品一区二区三区| 欧美三级韩国三级日本一级| 欧美美女一区二区在线观看| 91麻豆精品国产91久久久使用方法| 欧美高清视频www夜色资源网| 欧美一区午夜视频在线观看| 精品视频一区二区不卡| 欧美一区二区三区免费| 2017欧美狠狠色| 国产精品久久网站| 亚洲综合成人在线| 日日摸夜夜添夜夜添精品视频| 久久66热re国产| 成人国产电影网| 欧美性一级生活| 精品国产91亚洲一区二区三区婷婷| 2021中文字幕一区亚洲| 亚洲欧洲日产国码二区| 亚洲资源在线观看| 日本成人在线电影网| 精品一区二区影视| 99久久er热在这里只有精品15| 欧美色爱综合网| 久久久亚洲综合| 亚洲美腿欧美偷拍| 久久国产婷婷国产香蕉| av电影在线观看不卡| 正在播放亚洲一区| 国产精品拍天天在线| 爽好久久久欧美精品| 岛国av在线一区| 欧美军同video69gay| 国产日产精品一区| 亚洲大片在线观看| 成人免费观看视频| 91精品国产91久久久久久一区二区 | 天堂影院一区二区| 国产一区二区三区四| 色中色一区二区| 精品成人一区二区三区四区| 中文字幕亚洲一区二区va在线|