|
本帖最后由 曼菲士 于 2011-1-27 14:54 编辑
#include <ListviewConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Local $Windows = GUICreate("test", 300, 200, -1, -1, BitOR($WS_CAPTION, $WS_POPUP, $WS_EX_TRANSPARENT))
GUISetFont(9,400,0)
Local $ListView = GUICtrlCreateListView("编号|姓名|年龄", 1,1, 298, 198,$GUI_SS_DEFAULT_LISTVIEW,$LVS_EX_GRIDLINES + $LVS_EX_FULLROWSELECT)
GUICtrlSendMsg(-1, 0x101E, 0, 80) ;设置项目宽度
GUICtrlSendMsg(-1, 0x101E, 1, 80) ;设置项目宽度
GUICtrlSendMsg(-1, 0x101E, 2, 80) ;设置项目宽度
GUICtrlCreateListViewItem("001|李世民|58",$ListView)
GUICtrlCreateListViewItem("002|李世神|55",$ListView)
GUICtrlCreateListViewItem("003|李世穷|23",$ListView)
GUICtrlCreateListViewItem("004|李世富|62",$ListView)
GUISetState(@SW_SHOW, $Windows)
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Sleep(50)
WEnd
Exit
麻烦大家帮忙解决这个问题,谢谢。 |
|