#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("窗体1", 405, 294, 302, 218)
$ListView1 = GUICtrlCreateList("", 32, 32, 211, 175,BitOR($LBS_NOTIFY, $LBS_SORT, $WS_HSCROLL, $WS_VSCROLL), 0)
_GUICtrlListBox_SetItemHeight($ListView1, 30)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
_GUICtrlListBox_InsertString($ListView1, 'test'&@crlf&'测试', -1)
_GUICtrlListBox_InsertString($ListView1, 'test(换2行显示第一个无效求方法!)测试', -1)
_GUICtrlListBox_UpdateHScroll($ListView1)
_GUICtrlListBox_SetCurSel($ListView1, _GUICtrlListBox_GetCount($ListView1) - 1)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
上面是例子,求方法! |