回复 1# gzh888666
凡是跟样式相关的,都可以直接给控件发消息,而不是仅仅在定义控件时定义样式
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <WindowsConstants.au3>
#include <GUIListView.au3>
Global Const $STN_DBLCLK = 2
$Form1 = GUICreate("Form1", 362, 269, 262, 158)
$Input1 = GUICtrlCreateInput("Input1", 8, 8, 137, 21)
$List1 = GUICtrlCreateList("", 160, 0, 193, 253, $WS_VSCROLL)
GUICtrlSetData($List1, "12erwer23")
GUICtrlSendMsg($List1, $LB_ADDSTRING, 0, "12erwer23");如果存在相同就不能显示了
GUICtrlSetData($List1, "12erwer23423112312312312")
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|