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

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

?? display.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
				warningIcon = OS.LoadImage (0, OS.OIC_BANG, OS.IMAGE_ICON, 0, 0, OS.LR_SHARED);			}			hIcon = warningIcon;			break;	}	if (hIcon == 0) return null;	return Image.win32_new (this, SWT.ICON, hIcon);}/** * Returns the single instance of the system tray. * * @return the receiver's user-interface thread *  * @exception SWTException <ul> *    <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li> * </ul> * * @since 3.0 */public Tray getSystemTray () {	checkDevice ();	if (tray != null) return tray;	return tray = new Tray (this, SWT.NONE);}/** * Returns the user-interface thread for the receiver. * * @return the receiver's user-interface thread *  * @exception SWTException <ul> *    <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li> * </ul> */public Thread getThread () {	if (isDisposed ()) error (SWT.ERROR_DEVICE_DISPOSED);	return thread;}/**	  * Invokes platform specific functionality to allocate a new GC handle. * <p> * <b>IMPORTANT:</b> This method is <em>not</em> part of the public * API for <code>Display</code>. It is marked public only so that it * can be shared within the packages provided by SWT. It is not * available on all platforms, and should never be called from * application code. * </p> * * @param data the platform specific GC data  * @return the platform specific GC handle *  * @exception SWTError <ul> *    <li>ERROR_NO_HANDLES if a handle could not be obtained for image creation</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li> * </ul> */public int internal_new_GC (GCData data) {	if (isDisposed()) SWT.error(SWT.ERROR_DEVICE_DISPOSED);	int hDC = OS.GetDC (0);	if (hDC == 0) SWT.error (SWT.ERROR_NO_HANDLES);	if (data != null) {		int mask = SWT.LEFT_TO_RIGHT | SWT.RIGHT_TO_LEFT;		if ((data.style & mask) != 0) {			data.layout = (data.style & SWT.RIGHT_TO_LEFT) != 0 ? OS.LAYOUT_RTL : 0;		} else {			data.style |= SWT.LEFT_TO_RIGHT;		}		data.device = this;		data.hFont = systemFont ();	}	return hDC;}/** * Initializes any internal resources needed by the * device. * <p> * This method is called after <code>create</code>. * </p> *  * @see #create */protected void init () {	super.init ();			/* Create the callbacks */	windowCallback = new Callback (this, "windowProc", 4); //$NON-NLS-1$	windowProc = windowCallback.getAddress ();	if (windowProc == 0) error (SWT.ERROR_NO_MORE_CALLBACKS);		/* Remember the current procsss and thread */	threadId = OS.GetCurrentThreadId ();	processId = OS.GetCurrentProcessId ();		/* Use the character encoding for the default locale */	windowClass = new TCHAR (0, WindowName + WindowClassCount++, true);	/* Register the SWT window class */	int hHeap = OS.GetProcessHeap ();	int hInstance = OS.GetModuleHandle (null);	WNDCLASS lpWndClass = new WNDCLASS ();	lpWndClass.hInstance = hInstance;	lpWndClass.lpfnWndProc = windowProc;	lpWndClass.style = OS.CS_BYTEALIGNWINDOW | OS.CS_DBLCLKS;	lpWndClass.hCursor = OS.LoadCursor (0, OS.IDC_ARROW);	int byteCount = windowClass.length () * TCHAR.sizeof;	int lpszClassName = OS.HeapAlloc (hHeap, OS.HEAP_ZERO_MEMORY, byteCount);	lpWndClass.lpszClassName = lpszClassName;	OS.MoveMemory (lpszClassName, windowClass, byteCount);	OS.RegisterClass (lpWndClass);		/* Initialize the system font */	int systemFont = 0;	if (!OS.IsWinCE) {		NONCLIENTMETRICS info = OS.IsUnicode ? (NONCLIENTMETRICS) new NONCLIENTMETRICSW () : new NONCLIENTMETRICSA ();		info.cbSize = NONCLIENTMETRICS.sizeof;		if (OS.SystemParametersInfo (OS.SPI_GETNONCLIENTMETRICS, 0, info, 0)) {			systemFont = OS.CreateFontIndirect (OS.IsUnicode ? (LOGFONT) ((NONCLIENTMETRICSW)info).lfMessageFont : ((NONCLIENTMETRICSA)info).lfMessageFont);		}	}	if (systemFont == 0) systemFont = OS.GetStockObject (OS.DEFAULT_GUI_FONT);	if (systemFont == 0) systemFont = OS.GetStockObject (OS.SYSTEM_FONT);	if (systemFont != 0) systemFonts = new int [] {systemFont};		/* Create the message only HWND */	hwndMessage = OS.CreateWindowEx (0,		windowClass,		null,		OS.WS_OVERLAPPED,		0, 0, 0, 0,		0,		0,		hInstance,		null);	messageCallback = new Callback (this, "messageProc", 4); //$NON-NLS-1$	messageProc = messageCallback.getAddress ();	if (messageProc == 0) error (SWT.ERROR_NO_MORE_CALLBACKS);	OS.SetWindowLong (hwndMessage, OS.GWL_WNDPROC, messageProc);	/* Create the filter hook */	if (!OS.IsWinCE) {		msgFilterCallback = new Callback (this, "msgFilterProc", 3); //$NON-NLS-1$		msgFilterProc = msgFilterCallback.getAddress ();		if (msgFilterProc == 0) error (SWT.ERROR_NO_MORE_CALLBACKS);		filterHook = OS.SetWindowsHookEx (OS.WH_MSGFILTER, msgFilterProc, 0, threadId);	}		/* Register the task bar created message */	SWT_TASKBARCREATED = OS.RegisterWindowMessage (new TCHAR (0, "TaskbarCreated", true));	/* Initialize the Widget Table */	indexTable = new int [GROW_SIZE];	controlTable = new Control [GROW_SIZE];	for (int i=0; i<GROW_SIZE-1; i++) indexTable [i] = i + 1;	indexTable [GROW_SIZE - 1] = -1;}/**	  * Invokes platform specific functionality to dispose a GC handle. * <p> * <b>IMPORTANT:</b> This method is <em>not</em> part of the public * API for <code>Display</code>. It is marked public only so that it * can be shared within the packages provided by SWT. It is not * available on all platforms, and should never be called from * application code. * </p> * * @param hDC the platform specific GC handle * @param data the platform specific GC data  */public void internal_dispose_GC (int hDC, GCData data) {	OS.ReleaseDC (0, hDC);}boolean isValidThread () {	return thread == Thread.currentThread ();}/** * Maps a point from one coordinate system to another. * When the control is null, coordinates are mapped to * the display. * <p> * NOTE: On right-to-left platforms where the coordinate * systems are mirrored, special care needs to be taken * when mapping coordinates from one control to another * to ensure the result is correctly mirrored. *  * Mapping a point that is the origin of a rectangle and * then adding the width and height is not equivalent to * mapping the rectangle.  When one control is mirrored * and the other is not, adding the width and height to a * point that was mapped causes the rectangle to extend * in the wrong direction.  Mapping the entire rectangle * instead of just one point causes both the origin and * the corner of the rectangle to be mapped. * </p> *  * @param from the source <code>Control</code> or <code>null</code> * @param to the destination <code>Control</code> or <code>null</code> * @param point to be mapped  * @return point with mapped coordinates  *  * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the rectangle is null</li> *    <li>ERROR_INVALID_ARGUMENT - if the Control from or the Control to have been disposed</li>  * </ul> * @exception SWTException <ul> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> *    <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li> * </ul> *  * @since 2.1.2 */public Point map (Control from, Control to, Point point) {	checkDevice ();	if (point == null) error (SWT.ERROR_NULL_ARGUMENT);		return map (from, to, point.x, point.y);}/** * Maps a point from one coordinate system to another. * When the control is null, coordinates are mapped to * the display. * <p> * NOTE: On right-to-left platforms where the coordinate * systems are mirrored, special care needs to be taken * when mapping coordinates from one control to another * to ensure the result is correctly mirrored. *  * Mapping a point that is the origin of a rectangle and * then adding the width and height is not equivalent to * mapping the rectangle.  When one control is mirrored * and the other is not, adding the width and height to a * point that was mapped causes the rectangle to extend * in the wrong direction.  Mapping the entire rectangle * instead of just one point causes both the origin and * the corner of the rectangle to be mapped. * </p> *  * @param from the source <code>Control</code> or <code>null</code> * @param to the destination <code>Control</code> or <code>null</code> * @param x coordinates to be mapped * @param y coordinates to be mapped * @return point with mapped coordinates *  * @exception IllegalArgumentException <ul> *    <li>ERROR_INVALID_ARGUMENT - if the Control from or the Control to have been disposed</li>  * </ul> * @exception SWTException <ul> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> *    <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li> * </ul> *  * @since 2.1.2 */public Point map (Control from, Control to, int x, int y) {	checkDevice ();	if (from != null && from.isDisposed()) error (SWT.ERROR_INVALID_ARGUMENT);	if (to != null && to.isDisposed()) error (SWT.ERROR_INVALID_ARGUMENT);	int hwndFrom = from != null ? from.handle : 0;	int hwndTo = to != null ? to.handle : 0;	POINT point = new POINT ();	point.x = x;	point.y = y;	OS.MapWindowPoints (hwndFrom, hwndTo, point, 1);	return new Point (point.x, point.y);}/** * Maps a point from one coordinate system to another. * When the control is null, coordinates are mapped to * the display. * <p> * NOTE: On right-to-left platforms where the coordinate * systems are mirrored, special care needs to be taken * when mapping coordinates from one control to another * to ensure the result is correctly mirrored. *  * Mapping a point that is the origin of a rectangle and * then adding the width and height is not equivalent to * mapping the rectangle.  When one control is mirrored * and the other is not, adding the width and height to a * point that was mapped causes the rectangle to extend * in the wrong direction.  Mapping the entire rectangle * instead of just one point causes both the origin and * the corner of the rectangle to be mapped. * </p> *  * @param from the source <code>Control</code> or <code>null</code> * @param to the destination <code>Control</code> or <code>null</code> * @param rectangle to be mapped * @return rectangle with mapped coordinates *  * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the rectangle is null</li> *    <li>ERROR_INVALID_ARGUMENT - if the Control from or the Control to have been disposed</li>  * </ul> * @exception SWTException <ul> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> *    <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li> * </ul> *  * @since 2.1.2 */public Rectangle map (Control from, Control to, Rectangle rectangle) {	checkDevice ();	if (rectangle == null) error (SWT.ERROR_NULL_ARGUMENT);		return map (from, to, rectangle.x, rectangle.y, rectangle.width, rectangle.height);}/** * Maps a point from one coordinate system to another. * When the control is null, coordinates are mapped to * the display. * <p> * NOTE: On right-to-left platforms where the coordinate * systems are mirrored, special care needs to be taken * when mapping coordinates from one control to another * to ensure the result is correctly mirrored. *  * Mapping a point that is the origin of a rectangle and * then adding the width and height is not equivalent to * mapping the rectangle.  When one control is mirrored * and the other is not, adding the width and height to a * point that was mapped causes the rectangle to extend * in the wrong direction.  Mapping the entire rectangle * instead of just one point causes both the origin and * the corner of the rectangle to be mapped. * </p> *  * @param from the source <code>Control</code> or <code>null</code> * @param to the destination <code>Control</code> or <code>null</code> * @param x coordinates to be mapped * @param y coordinates to be mapped * @param width coordinates to be mapped * @param height coordinates to be mapped * @return rectangle with mapped coordinates *  * @exception IllegalArgumentException <ul> *    <li>ERROR_INVALID_ARGUMENT - if the Control from or the Control to have been disposed</li>  * </ul> * @exception SWTException <ul> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> *    <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li> * </ul> *  * @since 2.1.2 */public Rectangle map (Control from, Control to, int x, int y, int width, int height) {	checkDevice ();	if (from != null && from.isDisposed()) error (SWT.ERROR_INVALID_ARGUMENT);	if (to != null && to.isDisposed()) error (SWT.ERROR_INVALID_ARGUMENT);	int hwndFrom = from != null ? from.handle : 0;	int hwndTo = to != null ? to.handle : 0;	RECT rect = new RECT ();	rect.left = x;	rect.top  = y;	rect.right = x + width;	rect.bottom = y + height;	OS.MapWindowPoints (hwndFrom, hwndTo, rect, 2);	return new Rectangle (rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top);}/* * Returns a single character, converted from the default * multi-byte character set (MBCS) used by the operating * system widgets to a wide character set (WCS) used by Java. * * @param ch the MBCS character * @return the WCS character */static char mbcsToWcs (int ch) {	return mbcsToWcs (ch, 0);}/* * Returns a single character, converted from the specified * multi-byte character set (MBCS) used by the operating * system widgets to a wide character set (WCS) used by Java. * * @param ch the MBCS character * @param codePage the code page used to convert the character * @return the WCS character */static char mbcsToWcs (int ch, int codePage) {	if (OS.IsUnicode) return (char) ch;	int key = ch & 0xFFFF;	if (key <= 0x7F) return (char) ch;	byte [] buffer;	if (key <= 0xFF) {		buffer = new byte [1];		buffer [0] = (byte) key;	} else {		buffer = new byte [2];		buffer [0] = (byte) ((key >> 8) & 0xFF);		buffer [1] = (byte) (key & 0xFF);	}	char [] unicode = new char [1];	int cp = codePage != 0 ? codePage : OS.CP_ACP;	int count = OS.MultiByteToWideChar (cp, OS.MB_PRECOMPOSED, buffer, buffer.length, unicode, 1);	if (count == 0) return 0;	return unicode [0];}int messageProc (int hwnd, int msg, int wParam, int lParam) {	switch (msg) {		case SWT_KEYMSG:			boolean consumed = false;			MSG keyMsg = new MSG ();			OS.MoveMemory (keyMsg, lParam, MSG.sizeof);			Control control = findControl (keyMsg.hwnd);			if (control != null) {				keyMsg.hwnd = control.handle;				int flags = OS.PM_REMOVE | OS.PM_NOYIELD | OS.PM_QS_INPUT | OS.PM_QS_POSTMESSAGE;				do {					if (!(consumed |= filterMessage (keyM

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美高清视频一二三区 | 亚洲国产人成综合网站| 天天综合天天做天天综合| 国产精品一区专区| 欧美三级欧美一级| 国产色产综合产在线视频| 亚洲最新在线观看| 成人午夜av在线| 欧美一级日韩免费不卡| 亚洲精品中文在线观看| 国产成人av在线影院| 欧美日韩成人综合在线一区二区| 日本一区二区高清| 激情文学综合插| 欧洲亚洲精品在线| 亚洲人成精品久久久久| 国产99精品国产| 久久亚洲一区二区三区明星换脸| 视频在线观看一区| 欧美三区在线视频| 亚洲综合无码一区二区| av电影在线观看完整版一区二区| xfplay精品久久| 久久se这里有精品| 欧美一卡二卡在线观看| 午夜精品一区二区三区免费视频| 一本色道久久综合精品竹菊| 国产精品不卡在线| 成人激情小说乱人伦| 国产欧美日韩不卡| 成人做爰69片免费看网站| 国产亚洲一二三区| 国产精品亚洲人在线观看| 久久夜色精品国产欧美乱极品| 老司机精品视频在线| 欧美电影精品一区二区| 久久精品国产亚洲aⅴ| 精品精品欲导航| 久久99日本精品| 久久久综合激的五月天| 国产精品伊人色| 日韩伦理av电影| 91黄色免费版| 性欧美大战久久久久久久久| 欧美日韩电影一区| 久久97超碰国产精品超碰| 久久这里只有精品视频网| 国产精品一区二区三区99| 国产欧美一区二区精品忘忧草| 成人国产精品免费观看| 一区二区三区在线免费视频| 欧美在线一区二区三区| 琪琪一区二区三区| 欧美激情一区不卡| 91九色02白丝porn| 久久精品国产精品亚洲综合| 久久精品一区二区三区不卡 | 亚洲视频免费在线| 欧美日韩中字一区| 国产中文字幕一区| 亚洲美女在线一区| 欧美一区二区三区在线电影| 国产精品资源在线| 亚洲一区二区三区四区中文字幕| 777奇米成人网| 国产a精品视频| 亚洲国产成人91porn| 精品国内片67194| 色乱码一区二区三区88| 久久精品免费观看| 自拍偷拍亚洲综合| 欧美一区二区二区| 一本到不卡精品视频在线观看| 亚洲成人精品影院| 国产欧美日本一区视频| 欧美日本高清视频在线观看| 国产成人精品在线看| 婷婷中文字幕一区三区| 国产偷国产偷亚洲高清人白洁| 色婷婷激情综合| 国产精品一区二区三区乱码| 亚洲国产乱码最新视频| 国产精品久久久久久久岛一牛影视| 欧美日韩免费在线视频| av资源网一区| 极品少妇xxxx精品少妇| 五月激情六月综合| 国产精品久久国产精麻豆99网站| 欧美一级日韩不卡播放免费| 欧美亚洲综合网| 99久久综合99久久综合网站| 国内久久婷婷综合| 日本最新不卡在线| 亚洲精品欧美激情| 国产精品美女一区二区三区| 精品剧情在线观看| 欧美一个色资源| 在线观看91av| 色婷婷激情综合| 色综合 综合色| 成人性生交大片免费看视频在线| 美日韩一区二区| 天天色 色综合| 亚洲午夜久久久久久久久电影院| 欧美国产1区2区| 中文文精品字幕一区二区| 精品剧情v国产在线观看在线| 欧美一区二区精品| 777午夜精品免费视频| 欧美精品一二三区| 欧美亚洲国产bt| 欧美日韩一区二区三区四区五区| 色综合久久久久网| 91免费视频网址| 色综合天天狠狠| 在线免费亚洲电影| 欧美少妇一区二区| 欧美日韩1234| 91精品中文字幕一区二区三区| 欧美日韩精品高清| 91精品综合久久久久久| 777午夜精品视频在线播放| 日韩女优视频免费观看| 日韩三级免费观看| 久久色中文字幕| 欧美国产精品v| 国产精品久久久久久久久果冻传媒 | 精品一区二区三区在线观看| 麻豆精品一二三| 国模无码大尺度一区二区三区| 国产一区二区精品久久| 国产福利电影一区二区三区| 播五月开心婷婷综合| 日本韩国欧美国产| 欧美日韩在线观看一区二区| 5858s免费视频成人| 日韩三级视频在线看| 中文字幕乱码久久午夜不卡 | 日本高清无吗v一区| 欧美精选在线播放| 久久综合久久综合久久| 国产精品家庭影院| 日韩av不卡在线观看| 国产精品1区2区| 色噜噜狠狠成人网p站| 日韩精品专区在线影院观看| 国产亚洲女人久久久久毛片| 18成人在线视频| 日韩精品电影在线观看| 高清不卡在线观看av| 欧美在线制服丝袜| 久久精品夜夜夜夜久久| 亚洲欧美激情插| 久久精品99国产国产精| 成人av第一页| 日韩欧美国产一二三区| 最新高清无码专区| 日本一区中文字幕| 福利一区二区在线观看| 欧美酷刑日本凌虐凌虐| 国产婷婷色一区二区三区在线| 亚洲一区视频在线| 国产成人综合网| 在线成人高清不卡| 1区2区3区精品视频| 国产一区二区三区免费| 欧美网站一区二区| 国产精品麻豆网站| 久久99精品国产.久久久久 | 精品少妇一区二区三区在线视频| 亚洲欧洲www| 国产在线精品一区在线观看麻豆| 色网站国产精品| 欧美激情一区三区| 激情深爱一区二区| 欧美美女一区二区| 亚洲精品国产一区二区三区四区在线| 麻豆精品久久久| 欧美丝袜丝交足nylons| 国产精品第五页| 国产成人在线视频网站| 日韩欧美自拍偷拍| 午夜久久久久久久久| 在线亚洲一区观看| 亚洲视频你懂的| 99久免费精品视频在线观看| 欧美国产乱子伦| 国产精品一卡二卡在线观看| 日韩一区二区电影在线| 亚洲一卡二卡三卡四卡| 成人性生交大片免费看中文| 国产色爱av资源综合区| 国产剧情一区二区三区| 精品国产伦一区二区三区观看方式 | 日本欧美在线看| 欧美欧美欧美欧美首页| 亚洲午夜久久久| 欧美性淫爽ww久久久久无| 亚洲精品欧美激情| 欧美午夜精品一区二区三区|