#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListView.au3>
#include <ListViewConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 451, 192, 124)
GUISetFont(14, 800, 0, "宋体")
$Label1 = GUICtrlCreateLabel("销售清单", 248, 8, 124, 33)
GUICtrlSetFont(-1, 22, 800, 0, "宋体")
$Label2 = GUICtrlCreateLabel("要货单位:", 8, 56, 67, 18)
GUICtrlSetFont(-1, 11, 400, 0, "宋体")
GUICtrlCreateInput("", 88, 48, 241, 27)
$Label3 = GUICtrlCreateLabel("发票号码:", 336, 56, 74, 18)
GUICtrlSetFont(-1, 11, 400, 0, "宋体")
GUICtrlCreateInput("", 416, 48, 201, 27)
$ListView1 = GUICtrlCreateListView("行号|商品名称|单位|数量|单价|金额", 16, 88, 586, 342, -1, BitOR($WS_EX_CLIENTEDGE,$LVS_EX_GRIDLINES,$LVS_EX_FULLROWSELECT))
;~ GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 0, 50)
;~ GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 1, 50)
;~ GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 2, 50)
;~ GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 3, 50)
;~ GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 4, 50)
;~ GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 5, 50)
;~ _GUICtrlListView_JustifyColumn(GUICtrlGetHandle($ListView1), 1, 2)
;~ GUICtrlSetCursor (-1, 2)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
[img][/img]