#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
Example()
Func Example()
GUICreate("正在xxx,请稍等……", 290, 90, -1, -1)
Local $iProgress = GUICtrlCreateProgress(10, 10, 270, 20, $PBS_MARQUEE)
Local $iStart = GUICtrlCreateButton("开始 &S", 10, 60, 70, 25)
Local $iStop = GUICtrlCreateButton("停止 &t", 85, 60, 70, 25)
GUISetState(@SW_SHOW)
; Loop until the user exits.
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
Case $iStart
GUICtrlSendMsg($iProgress, $PBM_SETMARQUEE, 1, 50)
Case $iStop
GUICtrlSendMsg($iProgress, $PBM_SETMARQUEE, 0, 50)
EndSwitch
WEnd
EndFunc ;==>Example
|