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

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

?? nvo_comctl_datetime.sru

?? 一個漂亮的下拉日歷
?? SRU
?? 第 1 頁 / 共 2 頁
字號:
$PBExportHeader$nvo_comctl_datetime.sru
$PBExportComments$不可視對象,用來控制下拉式時間控件
forward
global type nvo_comctl_datetime from nonvisualobject
end type
end forward

type systemtime from structure
	uint		wyear
	uint		wmonth
	uint		wdayofweek
	uint		wday
	uint		whour
	uint		wminute
	uint		wsecond
	uint		wmilliseconds
end type

type initcommoncontrols from structure
	ulong		dwsize
	ulong		dwicc
end type

global type nvo_comctl_datetime from nonvisualobject autoinstantiate
end type

type prototypes
// ComCtl32
Function boolean InitCommonControlsEx( Ref INITCOMMONCONTROLS LPINITCOMMONCONTROLS) Library "comctl32.dll"

// Win32 API
Function long CreateWindowExA( ulong dwExStyle, string lpClassName, string lpWindowName, ulong dwStyle, long xPos, long yPos, long nWidth, long nHeight, long hWndParent, long hMenu, long hInstance, long lpParam ) Library "user32"
Function boolean DestroyWindow( long hWnd ) Library "user32"
Function boolean IsWindow( long hWnd ) Library "user32"
Function long SendMessageSystemTime( long hWnd, long uMsg, long wParam, Ref SYSTEMTIME lpst ) Library "user32" Alias For "SendMessageA"
Function long SendMessageSystemTime( long hWnd, long uMsg, long wParam, Ref SYSTEMTIME lpst[2] ) Library "user32" Alias For "SendMessageA"

end prototypes

type variables
// Handle for control
long ilHandle	= -1

// DateTime Syles (these are PUBLIC !)
Public Constant Long DTS_UPDOWN			= 1	// 0x0001 // use UPDOWN instead of MONTHCAL

Public Constant Long DTS_SHOWNONE		= 2	// 0x0002 // allow a NONE selection

Public Constant Long DTS_SHORTDATEFORMAT	= 0	// 0x0000 // use the short date format (app must forward WM_WININICHANGE messages)

Public Constant Long DTS_LONGDATEFORMAT		= 4	// 0x0004 // use the long date format (app must forward WM_WININICHANGE messages)

Public Constant Long DTS_TIMEFORMAT		= 9	// 0x0009 // use the time format (app must forward WM_WININICHANGE messages)

Public Constant Long DTS_APPCANPARSE		= 16	// 0x0010 // allow user entered strings (app MUST respond to DTN_USERSTRING)

Public Constant Long DTS_RIGHTALIGN		= 32	// 0x0020 // right-align popup instead of left-align it


// MonthCal color constants (for of_GetMColor and of_SetMColor)
Public Constant Long MCSC_BACKGROUND	= 0   // the background color (between months)

Public Constant Long MCSC_TEXT		= 1   // the dates

Public Constant Long MCSC_TITLEBK		= 2   // background of the title

Public Constant Long MCSC_TITLETEXT	= 3

Public Constant Long MCSC_MONTHBK	= 4   // background within the month cal

Public Constant Long MCSC_TRAILINGTEXT	= 5   // the text color of header & trailing days


// Window Classname and control ID
Private Constant String DATETIME_CLASS = "SysDateTimePick32"
Private Constant Long ID_DATETIME = 100

// InitCommonControlsEX constants
Private Constant Long ICC_LISTVIEW_CLASSES		= 1	// 0x00000001 - listview, header
Private Constant Long ICC_TREEVIEW_CLASSES	= 2	// 0x00000002 - treeview, tooltips
Private Constant Long ICC_BAR_CLASSES		= 4	// 0x00000004 - toolbar, statusbar, trackbar, tooltips
Private Constant Long ICC_TAB_CLASSES		= 8	// 0x00000008 - tab, tooltips
Private Constant Long ICC_UPDOWN_CLASS		= 16	// 0x00000010 - updown
Private Constant Long ICC_PROGRESS_CLASS		= 32	// 0x00000020 - progress
Private Constant Long ICC_HOTKEY_CLASS		= 64	// 0x00000040 - hotkey
Private Constant Long ICC_ANIMATE_CLASS		= 128	// 0x00000080 - animate
Private Constant Long ICC_WIN95_CLASSES		= 255	// 0x000000FF - All of the above
Private Constant Long ICC_DATE_CLASSES		= 256	// 0x00000100 - month picker, date picker, time picker, updown

Private Constant Long ICC_USEREX_CLASSES		= 512	// 0x00000200 - comboex
Private Constant Long ICC_COOL_CLASSES		= 1024	// 0x00000400 - rebar (coolbar) control

// Return Values
Private Constant Long GDT_ERROR	= -1

Private Constant Long GDT_VALID	= 0

Private Constant Long GDT_NONE	= 1


// Min/Max constants
Private Constant Long GDTR_MIN	= 1

Private Constant Long GDTR_MAX	= 2


// DateTime Message Constants
Private Constant Long DTM_FIRST		= 4096	// 0x1000

Private Constant Long DTM_GETSYSTEMTIME	= (DTM_FIRST + 1)
Private Constant Long DTM_SETSYSTEMTIME	= (DTM_FIRST + 2)
Private Constant Long DTM_GETRANGE	= (DTM_FIRST + 3)
Private Constant Long DTM_SETRANGE	= (DTM_FIRST + 4)
Private Constant Long DTM_SETFORMAT	= (DTM_FIRST + 5)
Private Constant Long DTM_SETMCCOLOR	= (DTM_FIRST + 6)
Private Constant Long DTM_GETMCCOLOR	= (DTM_FIRST + 7)
end variables

forward prototypes
protected function datetime of_getdatetime (readonly systemtime apsystemtime)
protected subroutine of_getsystemtime (datetime adtdatetime, ref systemtime apsystemtime)
public function datetime of_getdatetime ()
public function long of_create (long alparent, long alstyle, long alx, long aly, long alwidth, long alheight)
public function boolean of_destroy ()
public function long of_gethandle ()
public subroutine of_sethandle (long alHandle)
public function long of_getrange (ref datetime adtmin, ref datetime adtmax)
public function boolean of_setrange (datetime adtMin, datetime adtMax)
public function boolean of_setformat (readonly string asformat)
public function boolean of_setmcolor (integer icolor, long lrgb)
public function long of_getmcolor (integer icolor)
public function boolean of_setdatetime (datetime adtdatetime)
end prototypes

protected function datetime of_getdatetime (readonly systemtime apsystemtime);//====================================================================
// Function - of_getdatetime for nvo_comctl_datetime
//--------------------------------------------------------------------
// Description:Converts the SYSTEMTIME structure to a PB DateTime.
//--------------------------------------------------------------------
// Arguments:	
//
//	systemtime apsystemtime
//		Win32 date/time in a SYSTEMTIME structure
//--------------------------------------------------------------------
// Returns:	(DATETIME) - PB equivalent of SYSTEMTIME structure
//--------------------------------------------------------------------
// Author:	RCSIZER		Date: September, 1999
//====================================================================
date	ldDate
time	ltTime

ldDate = Date( apSystemTime.wYear, apSystemTime.wMonth, apSystemTime.wDay )
ltTime = Time( apSystemTime.wHour, apSystemTime.wMinute, apSystemTime.wSecond )

RETURN DateTime( ldDate, ltTime )

end function

protected subroutine of_getsystemtime (datetime adtdatetime, ref systemtime apsystemtime);//====================================================================
// Function - of_getsystemtime for nvo_comctl_datetime
//--------------------------------------------------------------------
// Description:Converts a PB DateTime into a Win32 SYSTEMTIME
//--------------------------------------------------------------------
// Arguments:	
//
//	datetime adtDateTime
//		PB Datetime variable that must be converted into a SYSTEMTIME
//	REF SYSTEMTIME apSystemTime
//		Returned SYSTEMTIME structure
//--------------------------------------------------------------------
// Returns:	<none>
//--------------------------------------------------------------------
// Author:	RCSIZER		Date: September, 1999
//====================================================================

SYSTEMTIME	lSystemTime
Date			ldDate
Time			ltTime

// Split DateTime into Date and Time components
ldDate = Date( adtDateTime )
ltTime = Time( adtDateTime )

// Popupate Date structure elements
lSystemTime.wYear		= Year( ldDate )
lSystemTime.wMonth	= Month( ldDate )
lSystemTime.wDay		= Day( ldDate )

// Populate Time structure elements
lSystemTime.wHour		= Hour( ltTime )
lSystemTime.wMinute	= Minute( ltTime )
lSystemTime.wSecond	= Second( ltTime )
	
// Set reference argument
apSystemTime = lSystemTime

RETURN

end subroutine

public function datetime of_getdatetime ();//====================================================================
// Function - of_getdatetime for nvo_comctl_datetime
//--------------------------------------------------------------------
// Description:Returns the current date/time in the control. If no value
//					is selected and the NONE style is allowed, this 
//					function will return a NULL value.
//--------------------------------------------------------------------
// Returns:	(DATETIME) - Date/Time in edit box. NULL if no date entered.
//--------------------------------------------------------------------
// Author:	RCSIZER		Date: September, 1999
//====================================================================
long			llRetVal
datetime		ldtSelected
SYSTEMTIME	lpSYSTEMTIME

IF IsWindow( This.ilHandle ) THEN
	llRetVal = SendMessageSystemTime( This.ilHandle, DTM_GETSYSTEMTIME, 0, lpSYSTEMTIME )
ELSE
	llRetVal = GDT_NONE
END IF

CHOOSE CASE llRetVal
	CASE GDT_ERROR, GDT_NONE
		SetNull( ldtSelected )

	CASE GDT_VALID
		ldtSelected = This.of_GetDateTime( lpSYSTEMTIME )
END CHOOSE

RETURN ldtSelected

end function

public function long of_create (long alparent, long alstyle, long alx, long aly, long alwidth, long alheight);//===================================================================
// Function - of_create for nvo_comctl_datetime
//-------------------------------------------------------------------
// Description:Creates a DateTime control using the CreateWindowEX API
//					function. This allows the user to explicitly set the
//					parent.
//
//	NOTE: All window co-oridinates (X,Y,Width,Height) are in PIXELS !
//			Use the UnitsToPixels() function to convert PB units to
//			pixels BEFORE calling this function.
//-------------------------------------------------------------------
// Parameters:
//
//	alParent
//		Handle to parent or owner window
//	alStyle
//		DateTime styles. See the DTS_xxx constants
//	alX
//		X Position relative to the parent window
//	alY
//		Y Position relative to the parent window
// alWidth
//		Width of datetime control
// alHeight
//		Height of datetime control
//-------------------------------------------------------------------
// Returns:	Returns the window handle if successful.
//				Returns 0 if progress bar was not created.
//-------------------------------------------------------------------
// Author:	RCSIZER		Date: September, 1999
//===================================================================

// Window Style constants
Constant long WS_CHILD		= 1073741824
Constant long WS_VISIBLE	= 268435456

long	llHandle
long	llLeft, llTop, llRight, llBottom

// Return current handle is window already exists
IF IsWindow( This.ilHandle ) THEN RETURN This.ilHandle

// Create MonthCal control
llHandle = CreateWindowExA( &
	0,											/* No extended Styles */ &
	DATETIME_CLASS,						/* Registered Window ClassName */ &
	"", 										/* No Window Name */ &
	WS_CHILD + WS_VISIBLE + alStyle,	/* Window Styles. See DTS_xxx constants */ &
	alX, alY, alWidth, alHeight,		/* Window position */ &
	alParent,								/* Parent window, can be a window or any other control */ &
	ID_DATETIME,							/* Control ID */ &
	Handle(GetApplication()),			/* Application Handle */ &
	0 											/* Pointer to window-creation data */ )

// Was window created successfully ?
IF IsWindow(llHandle) THEN 
	// Save window handle
	This.ilHandle = llHandle
END IF

// Return result of CreateWindowEX
RETURN llHandle

end function

public function boolean of_destroy ();//====================================================================
// Function - of_destroy for nvo_comctl_datetime
//--------------------------------------------------------------------
// Description:Destroys the window if it was previously created.
//--------------------------------------------------------------------
// Returns:	(BOOLEAN) - TRUE = Window was destroyed (or did not exist)
//								FALSE = Window was not destroyed.
//--------------------------------------------------------------------
// Author:	RCSIZER		Date: September, 1999
//====================================================================
boolean	lbDestroy = TRUE

IF IsWindow( This.ilHandle ) THEN
	lbDestroy = DestroyWindow( This.ilHandle )
END IF

RETURN lbDestroy

end function

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美第一区| 欧美日韩五月天| 欧美吻胸吃奶大尺度电影| 欧美一区二区三区免费| 亚洲视频在线观看一区| 麻豆精品一区二区| 99久久精品99国产精品| 26uuu另类欧美| 亚洲第四色夜色| jizzjizzjizz欧美| 久久久亚洲精品一区二区三区 | 中文字幕字幕中文在线中不卡视频| 亚洲线精品一区二区三区八戒| 国模一区二区三区白浆| 欧美美女黄视频| 玉足女爽爽91| 99国产精品久久久久久久久久久| 国产三级久久久| 日韩国产欧美在线播放| 91久久精品一区二区二区| 久久亚洲精精品中文字幕早川悠里| 亚洲一区二区三区在线| 99久久99久久综合| 国产精品久久久久久久裸模 | 亚洲精品视频一区二区| 粉嫩aⅴ一区二区三区四区五区| 日韩一区二区电影在线| 亚洲va韩国va欧美va精品 | 一区二区三区小说| 成人黄色777网| 欧美国产成人在线| 国产精品一区在线观看你懂的| 日韩欧美一区二区视频| 日韩中文字幕91| 丁香婷婷综合五月| 91国产福利在线| 亚洲男同性视频| 色老汉av一区二区三区| 亚洲免费三区一区二区| 99精品欧美一区二区三区小说| 国产精品不卡视频| 91香蕉视频在线| 亚洲国产日韩a在线播放性色| 欧美艳星brazzers| 亚洲成人免费看| 这里只有精品免费| 另类的小说在线视频另类成人小视频在线 | 欧美放荡的少妇| 午夜av一区二区| 欧美唯美清纯偷拍| 樱桃国产成人精品视频| 97se亚洲国产综合自在线| 日本一区二区三区在线观看| 国产jizzjizz一区二区| 亚洲国产电影在线观看| 丁香六月久久综合狠狠色| 国产无一区二区| 国产成人在线观看免费网站| 国产欧美日本一区视频| 国产91精品露脸国语对白| 欧美一卡2卡3卡4卡| 天天综合天天综合色| 欧美一区二区三区婷婷月色| 奇米色一区二区| 日韩精品一区二区三区老鸭窝| 蜜桃久久精品一区二区| 精品国产一区二区三区四区四| 精品一区精品二区高清| 国产三级一区二区| 91蝌蚪porny九色| 亚洲免费观看在线观看| 日韩欧美成人一区| 国产精品一区在线观看你懂的| 日本一区二区三区国色天香| 不卡av免费在线观看| 亚洲线精品一区二区三区八戒| 精品视频1区2区| 国内偷窥港台综合视频在线播放| 欧美激情一区二区三区四区| eeuss鲁片一区二区三区在线看| 中文字幕一区不卡| 欧美日韩一级大片网址| 韩国一区二区三区| 亚洲免费观看高清完整| 欧美一区二区三区色| 国产综合色精品一区二区三区| 国产精品你懂的| 91麻豆精品国产91| 国产福利一区在线| 亚洲综合色噜噜狠狠| 日韩欧美一区二区在线视频| 成人国产精品免费网站| 亚洲mv大片欧洲mv大片精品| 久久久久亚洲蜜桃| 欧美一区二区三区视频| 粉嫩高潮美女一区二区三区| 亚洲午夜一区二区三区| 国产日韩欧美a| 99精品视频中文字幕| 久久精品国产免费| 亚洲高清在线视频| 日本一区二区三区四区| 日韩三级伦理片妻子的秘密按摩| 不卡的电影网站| 久久国产福利国产秒拍| 亚洲国产综合色| 国产精品蜜臀在线观看| 精品乱人伦小说| 在线观看三级视频欧美| 91丨porny丨户外露出| 国产一区视频网站| 丝袜美腿亚洲综合| 亚洲综合在线观看视频| 日本一区二区三区电影| 精品免费国产一区二区三区四区| 欧美在线制服丝袜| 欧洲精品中文字幕| 成人一区二区三区视频在线观看 | 免费成人av资源网| 亚洲sss视频在线视频| 亚洲三级免费观看| 国产欧美日韩三级| 精品成人免费观看| 欧美一区二区三区四区五区 | 欧美国产精品劲爆| 久久这里都是精品| 日韩一卡二卡三卡国产欧美| 99免费精品视频| 91久久精品网| 555www色欧美视频| 欧美夫妻性生活| 欧美绝品在线观看成人午夜影视| 色94色欧美sute亚洲线路二| 99久久99久久精品免费观看| 国产综合色精品一区二区三区| 亚洲蜜臀av乱码久久精品 | 欧美亚洲图片小说| 在线亚洲高清视频| 精品视频一区二区不卡| 欧美精品亚洲二区| 欧美一区二区性放荡片| 欧美一区二区二区| 精品少妇一区二区三区在线播放 | 午夜婷婷国产麻豆精品| 亚洲不卡一区二区三区| 亚洲成人精品一区二区| 亚洲午夜av在线| 日韩在线一区二区| 久久精品国产99国产精品| 青椒成人免费视频| 日本欧美肥老太交大片| 精品一区二区三区不卡 | 亚洲欧洲无码一区二区三区| 中文字幕一区二区5566日韩| 亚洲另类在线一区| 亚洲福利视频三区| 蜜臀av亚洲一区中文字幕| 秋霞电影一区二区| 成人黄色777网| 欧美亚洲动漫精品| 欧美一区二区二区| 日本一区二区综合亚洲| 一区二区三区不卡视频| 青青草原综合久久大伊人精品优势| 乱中年女人伦av一区二区| 亚洲国产精品自拍| www.欧美日韩| 欧美日本不卡视频| 久久精品一区蜜桃臀影院| 亚洲欧美日韩一区| 午夜精品一区二区三区免费视频| 狠狠久久亚洲欧美| 色天天综合久久久久综合片| 日韩午夜av一区| 国产精品成人网| 精品无人码麻豆乱码1区2区 | 国产主播一区二区三区| 9i在线看片成人免费| 制服丝袜激情欧洲亚洲| 中文字幕+乱码+中文字幕一区| 亚洲三级小视频| 国内精品视频666| 色久综合一二码| 中文字幕一区二区三区在线观看| 婷婷综合在线观看| 成人精品在线视频观看| 欧美一区三区四区| 亚洲天堂免费看| 国产主播一区二区三区| aaa欧美大片| 一区在线中文字幕| 国产一区亚洲一区| 6080yy午夜一二三区久久| 亚洲人成伊人成综合网小说| 精品一区二区三区久久| 色综合久久综合网| 亚洲激情图片一区| 成人精品视频网站| 久久久久久久精| 蜜臀91精品一区二区三区|