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

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

?? colordialog.java

?? 源碼為Eclipse開源開發(fā)平臺(tái)桌面開發(fā)工具SWT的源代碼,
?? JAVA
字號(hào):
/******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html *  * Contributors: *     IBM Corporation - initial API and implementation *******************************************************************************/package org.eclipse.swt.widgets;import org.eclipse.swt.internal.*;import org.eclipse.swt.internal.win32.*;import org.eclipse.swt.*;import org.eclipse.swt.graphics.*;/** * Instances of this class allow the user to select a color * from a predefined set of available colors. * <dl> * <dt><b>Styles:</b></dt> * <dd>(none)</dd> * <dt><b>Events:</b></dt> * <dd>(none)</dd> * </dl> * <p> * IMPORTANT: This class is intended to be subclassed <em>only</em> * within the SWT implementation. * </p> */public class ColorDialog extends Dialog {	RGB rgb;	/** * Constructs a new instance of this class given only its parent. * * @param parent a composite control which will be the parent of the new instance * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the parent is null</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li> *    <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li> * </ul> * * @see SWT * @see Widget#checkSubclass * @see Widget#getStyle */public ColorDialog (Shell parent) {	this (parent, SWT.PRIMARY_MODAL);}/** * Constructs a new instance of this class given its parent * and a style value describing its behavior and appearance. * <p> * The style value is either one of the style constants defined in * class <code>SWT</code> which is applicable to instances of this * class, or must be built by <em>bitwise OR</em>'ing together  * (that is, using the <code>int</code> "|" operator) two or more * of those <code>SWT</code> style constants. The class description * lists the style constants that are applicable to the class. * Style bits are also inherited from superclasses. * </p> * * @param parent a composite control which will be the parent of the new instance (cannot be null) * @param style the style of control to construct * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the parent is null</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li> *    <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li> * </ul> * * @see SWT * @see Widget#checkSubclass * @see Widget#getStyle */public ColorDialog (Shell parent, int style) {	super (parent, style);	checkSubclass ();}int CCHookProc (int hdlg, int uiMsg, int lParam, int lpData) {	switch (uiMsg) {		case OS.WM_INITDIALOG:			if (title != null && title.length () != 0) {				/* Use the character encoding for the default locale */				TCHAR buffer = new TCHAR (0, title, true);				OS.SetWindowText (hdlg, buffer);			}			break;	}	return 0;}/** * Returns the currently selected color in the receiver. * * @return the RGB value for the selected color, may be null * * @see PaletteData#getRGBs */public RGB getRGB () {	return rgb;}/** * Makes the receiver visible and brings it to the front * of the display. * * @return the selected color, or null if the dialog was *         cancelled, no color was selected, or an error *         occurred * * @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 RGB open () {		/* Get the owner HWND for the dialog */	int hwndOwner = parent.handle;	/* Create the CCHookProc */	Callback callback = new Callback (this, "CCHookProc", 4);	int lpfnHook = callback.getAddress ();		/* Allocate the Custom Colors */	Display display = parent.display;	if (display.lpCustColors == 0) {		int hHeap = OS.GetProcessHeap ();		display.lpCustColors = OS.HeapAlloc (hHeap, OS.HEAP_ZERO_MEMORY, 16 * 4);	}		/* Open the dialog */		CHOOSECOLOR lpcc = new CHOOSECOLOR ();	lpcc.lStructSize = CHOOSECOLOR.sizeof;	lpcc.Flags = OS.CC_ANYCOLOR | OS.CC_ENABLEHOOK;	lpcc.lpfnHook = lpfnHook;	lpcc.hwndOwner = hwndOwner;	lpcc.lpCustColors = display.lpCustColors;	if (rgb != null) {		lpcc.Flags |= OS.CC_RGBINIT;		int red = rgb.red & 0xFF;		int green = (rgb.green << 8) & 0xFF00;		int blue = (rgb.blue << 16) & 0xFF0000;		lpcc.rgbResult = red | green | blue;	}		/* Make the parent shell be temporary modal */	Shell oldModal = null;	if ((style & (SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL)) != 0) {		oldModal = display.getModalDialogShell ();		display.setModalDialogShell (parent);	}		/* Open the dialog */	boolean success = OS.ChooseColor (lpcc);		/* Clear the temporary dialog modal parent */	if ((style & (SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL)) != 0) {		display.setModalDialogShell (oldModal);	}		if (success) {		int red = lpcc.rgbResult & 0xFF;		int green = (lpcc.rgbResult >> 8) & 0xFF;		int blue = (lpcc.rgbResult >> 16) & 0xFF;		rgb = new RGB (red, green, blue);	}		/* Free the CCHookProc */	callback.dispose ();		/* Free the Custom Colors */	/*	* This code is intentionally commented.  Currently,	* there is exactly one set of custom colors per display.	* The memory associated with these colors is released	* when the display is disposed.	*///	if (lpCustColors != 0) OS.HeapFree (hHeap, 0, lpCustColors);		/*	* This code is intentionally commented.  On some	* platforms, the owner window is repainted right	* away when a dialog window exits.  This behavior	* is currently unspecified.	*///	if (hwndOwner != 0) OS.UpdateWindow (hwndOwner);		if (!success) return null;	return rgb;}/** * Sets the receiver's selected color to be the argument. * * @param rgb the new RGB value for the selected color, may be *        null to let the platform select a default when *        open() is called * @see PaletteData#getRGBs */public void setRGB (RGB rgb) {	this.rgb = rgb;}}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
青青草97国产精品免费观看 | 欧美本精品男人aⅴ天堂| 精品国产一区二区三区忘忧草| 一区二区三区四区在线免费观看 | 国产91丝袜在线播放九色| 在线不卡的av| 亚洲制服丝袜一区| 91麻豆国产精品久久| |精品福利一区二区三区| 国产成人h网站| 国产亚洲福利社区一区| 蜜臀久久99精品久久久久宅男 | 欧美激情一区二区| 久久不见久久见免费视频1| 欧美成人猛片aaaaaaa| 蜜臀国产一区二区三区在线播放 | 欧美性大战久久久久久久| 亚洲精品视频在线观看免费| 在线免费观看一区| 亚洲大片一区二区三区| 欧美性生活大片视频| 性久久久久久久久| 欧美一区二区在线看| 麻豆成人免费电影| 久久综合九色综合欧美亚洲| 国模娜娜一区二区三区| 精品久久一区二区| 成人激情小说乱人伦| 亚洲欧美偷拍另类a∨色屁股| 色婷婷精品久久二区二区蜜臂av | 美女性感视频久久| 精品国产一二三| 成人午夜视频在线| 亚洲另类色综合网站| 欧美日韩国产经典色站一区二区三区| 亚洲.国产.中文慕字在线| 日韩一区二区三区电影在线观看| 狠狠久久亚洲欧美| 欧美激情一区二区在线| 91视频www| 日韩中文字幕一区二区三区| 久久久久久9999| 日本国产一区二区| 精品一区二区国语对白| 亚洲欧美自拍偷拍色图| 欧美日韩一二区| 精品亚洲成a人| 亚洲免费在线播放| 精品国内片67194| 99久久精品国产观看| 日产精品久久久久久久性色| 日本一区二区三区高清不卡| 欧美性欧美巨大黑白大战| 国产九色sp调教91| 午夜av一区二区| 久久久噜噜噜久久中文字幕色伊伊| 色婷婷久久久久swag精品| 久久成人免费电影| 一个色妞综合视频在线观看| 91精品在线观看入口| 99精品一区二区| 久久国产精品72免费观看| 一区二区三区免费看视频| 久久综合一区二区| 欧美唯美清纯偷拍| 久久国产日韩欧美精品| 欧美国产丝袜视频| 精品国产成人在线影院| 欧美日韩视频在线第一区| 国产一二三精品| 天天影视涩香欲综合网| 亚洲精品久久嫩草网站秘色| 久久综合九色综合久久久精品综合| 欧美视频一区在线| 懂色一区二区三区免费观看| 美女网站色91| 五月天视频一区| 亚洲日本一区二区三区| 欧美韩国日本综合| 2022国产精品视频| 欧美一区二区视频免费观看| 欧美性猛交xxxxxx富婆| 91黄视频在线| 91视频精品在这里| jlzzjlzz亚洲女人18| 成人丝袜18视频在线观看| 精品一区二区日韩| 激情五月婷婷综合| 日韩不卡一二三区| 日韩综合小视频| 青青青伊人色综合久久| 日韩精品一区第一页| 天天爽夜夜爽夜夜爽精品视频| 一区二区免费看| 亚洲自拍偷拍网站| 亚洲成人一区二区| 亚洲sss视频在线视频| 亚洲.国产.中文慕字在线| 亚洲国产成人av好男人在线观看| 国产精品动漫网站| 综合久久久久综合| 亚洲精品福利视频网站| 亚洲一卡二卡三卡四卡| 亚洲超碰精品一区二区| 日韩和欧美的一区| 亚洲一区二区三区美女| 一区二区三区在线看| 一区二区三区四区乱视频| 亚洲一级二级三级| 三级在线观看一区二区| 毛片av一区二区| 国产精品一二一区| 国产精品一区二区在线播放 | 亚洲免费观看高清完整版在线| 久久久午夜精品理论片中文字幕| 国产欧美一区二区精品性色超碰 | 制服丝袜日韩国产| 日韩欧美美女一区二区三区| 精品久久久久久久人人人人传媒 | 国产一区在线精品| 成人av网站在线| 欧美在线观看视频在线| 欧美精品黑人性xxxx| 2020国产成人综合网| 亚洲欧美一区二区三区极速播放| 亚洲精品ww久久久久久p站| 亚洲欧美日韩精品久久久久| 亚洲综合清纯丝袜自拍| 久久99精品久久只有精品| 国产一区二区三区蝌蚪| 色狠狠桃花综合| 欧美一区二区三区在线观看视频| 国产午夜精品在线观看| 一区二区三区在线播| 国产精品1024| 日韩欧美在线网站| 亚洲成人av资源| 91毛片在线观看| 国产欧美精品区一区二区三区| 蜜桃一区二区三区在线观看| 欧美性猛交xxxx黑人交 | 国产精品乱人伦一区二区| 久久99精品久久久久久| 欧美日韩午夜精品| 亚洲一区二区三区四区在线| av在线这里只有精品| 久久久久久久综合| 久久91精品久久久久久秒播| 欧美日韩免费高清一区色橹橹| 中文字幕一区二区三区四区 | 91免费观看视频| 欧美国产一区视频在线观看| 国产精一区二区三区| 精品国产一区二区三区久久影院| 日本 国产 欧美色综合| 欧美日韩三级一区二区| 亚洲精品欧美在线| 色婷婷精品久久二区二区蜜臀av| 国产精品超碰97尤物18| 成人性生交大片免费看在线播放| 久久综合九色综合97婷婷女人 | 亚洲天堂免费在线观看视频| 国产91在线|亚洲| 欧美韩日一区二区三区四区| 国产成人精品三级麻豆| 久久久不卡影院| 国产精品小仙女| 国产人妖乱国产精品人妖| 岛国精品在线观看| 亚洲欧美综合网| 日本国产一区二区| 亚洲成人福利片| 亚洲欧美韩国综合色| 99re热视频精品| 一区二区三区久久| 欧美日韩一区国产| 奇米精品一区二区三区四区| 8x8x8国产精品| 精品一区免费av| 中文字幕免费一区| 99re这里只有精品视频首页| 亚洲一区在线观看免费| 欧美久久久久久久久久| 激情综合一区二区三区| 国产亚洲欧美日韩日本| 91精品福利在线一区二区三区 | 在线播放91灌醉迷j高跟美女| 天天av天天翘天天综合网色鬼国产| 欧美三区免费完整视频在线观看| 日韩中文字幕一区二区三区| 亚洲精品一线二线三线| 成人福利电影精品一区二区在线观看| 国产精品不卡在线| 欧美日韩高清一区| 国产精品一级片| 亚洲综合无码一区二区| 欧美videofree性高清杂交| 国产成人午夜99999| 亚洲一区二区三区四区中文字幕| 日韩一区二区三区在线|