请问我想打开一个“*.txt”的文件内容到编辑框该如何设置?
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 350, 400, 192, 124)
$Edit1 = GUICtrlCreateEdit("", 8, 24, 273, 305)
GUICtrlSetData(-1, "Edit1")
$Button1 = GUICtrlCreateButton("打开", 16, 345, 80, 33, 0)
$Pic1 = GUICtrlCreatePic("", 200, 16, 100, 200, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
EndSwitch
WEnd
[ 本帖最后由 17911 于 2009-3-4 10:34 编辑 ] |