#region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_UseUpx=n
#AutoIt3Wrapper_UseX64=n
#endregion ;**** 参数创建于 ACNWrapper_GUI ****
#include <GuiEdit.au3>
#Include <GuiButton.au3>
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
#include "XCGUI_Fun.au3"
XInitXCGUI()
$create = XWnd_Create("500", "500", "600", "500", "窗口测试",$xc_window_style_default)
$edit = _GUICtrlEdit_Create(XWnd_GetHWND($create),"输入框",20,40,200,25,BitOR($ES_AUTOHSCROLL,$ES_MULTILINE, $ES_WANTRETURN))
$edit2 = _GUICtrlEdit_Create(XWnd_GetHWND($create),"编辑框",20,70,200,80)
$btn4 = _GUICtrlButton_Create(XWnd_GetHWND($create),"AU3按钮",230,40,80,25)
$btn3 = XBtn_Create(230, 70, 80, 25, "炫彩按钮", $create)
$btn2 = XBtn_Create("400", "4", "75", "25", "退出程序", $create)
XEle_RegEventC($btn2, "btn2")
XEle_RegEventC($btn3, "_but1")
XWnd_ShowWindow($create)
While 1
;~ If _GUICtrlButton_GetState($btn4)=512 Then MsgBox(0,"",_GUICtrlEdit_GetText($edit)) ;鼠标在按钮上
If _GUICtrlButton_GetState($btn4)=520 Then MsgBox(0,"",_GUICtrlEdit_GetText($edit2)) ;按钮按下
Sleep(1)
WEnd
;~ XRunXCGUI()
Func _but1($bh)
MsgBox(0,"",_GUICtrlEdit_GetText($edit))
EndFunc
Func btn2($bh)
xquit_acn($create)
EndFunc ;==>btn2