本帖最后由 jycel 于 2009-12-16 20:29 编辑
如图,英文和中文都差一个字符!还有参数没设置吗?
#Include <GuiRichEdit.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 389, 305, 192, 114)
$hRichEdit1=_GUICtrlRichEdit_Create($Form1,"jycel", 48, 8, 273, 97,BitOR($ES_MULTILINE, $WS_VSCROLL, $ES_AUTOVSCROLL))
$hRichEdit2=_GUICtrlRichEdit_Create($Form1,"景勇", 48, 128, 273, 113,BitOR($ES_MULTILINE, $WS_VSCROLL, $ES_AUTOVSCROLL))
$Button1 = GUICtrlCreateButton("Button1", 32, 256, 113, 41)
$Button2 = GUICtrlCreateButton("Button2", 208, 256, 129, 41)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
GUIDelete()
Exit
Case $Button1
MsgBox(0,"",_GUICtrlRichEdit_GetText($hRichEdit1))
Case $Button2
MsgBox(0,"",_GUICtrlRichEdit_GetText($hRichEdit2))
EndSwitch
WEnd
|