本帖最后由 gzh888666 于 2011-11-2 14:00 编辑
他可能要的是这种效果#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <WindowsConstants.au3>
Opt("GUIResizeMode",802)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 408, 270, 192, 124, BitOR($GUI_SS_DEFAULT_GUI,$WS_MAXIMIZEBOX,$WS_SIZEBOX,$WS_THICKFRAME,$WS_TABSTOP))
$Button1 = GUICtrlCreateButton("Button1", 8, 8, 75, 25)
$Button2 = GUICtrlCreateButton("Button2", 88, 8, 75, 25)
$ListView1 = GUICtrlCreateListView("", 8, 40, 393, 225)
GUICtrlSetResizing (-1,102 )
$Button3 = GUICtrlCreateButton("Button3", 168, 8, 75, 25)
$Button4 = GUICtrlCreateButton("Button4", 248, 8, 75, 25)
$Button5 = GUICtrlCreateButton("Button5", 328, 8, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|