本帖最后由 xuanfeng1234567 于 2010-11-3 01:41 编辑 #include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Local $listview, $button, $item1, $item2, $item3, $input1, $msg
GUICreate("listview", 400, 250, 100, 200, -1, $WS_EX_ACCEPTFILES)
$listview = GUICtrlCreateListView("col1 |col2 |col3 ", 10, 10, 380, 150);,$LVS_SORTDESCENDING)
GUICtrlSetFont($listview,16)
$button = GUICtrlCreateButton("Value?", 75, 170, 70, 20)
$item1 = GUICtrlCreateListViewItem("item2|col22|col23", $listview)
$item2 = GUICtrlCreateListViewItem("item1|col12|col13", $listview)
$item3 = GUICtrlCreateListViewItem("item3|col32|col33", $listview)
GUISetState()
While 1
$msg = GUIGetMsg()
Switch $msg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
是这种效果吗? |