|
代码:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Include <GuiListView.au3>
#Region ### START Koda GUI section ### Form=d:\其它\工程\form1.kxf
$Form1 = GUICreate("数据库修改", 463, 369, 192, 106)
$ListView1 = GUICtrlCreateListView("姓名|性别|身份证|地址", 24, 24, 411, 286)
_GUICtrlListView_SetExtendedListViewStyle($ListView1, BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT))
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 0, 64)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 1, 50)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 2, 130)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 3, 160)
$Button1 = GUICtrlCreateButton("确定", 96, 326, 75, 25)
$Button2 = GUICtrlCreateButton("退出", 240, 326, 75, 25)
$Label1 = GUICtrlCreateLabel("", 250, 3, 188, 20)
GUICtrlSetColor(-1, 0xFF0000)
;~ GUICtrlSetData($Label1,"数据库中一共有"& $dir[0] &"个用户!!")
GUISetState(@SW_SHOW)
duqu()
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
ini文件:
-------------------------------
[410xxxxxxxxxxxx]
姓别=陈xx
性别=男
证件类型=身份证
证件编号=410xxxxxxxxxxxxxxxx
地址=xxxxxxx
-------------------------------
[410xxxxxxxxxx]
姓名=张xxxxxxx
性别=女
证件类型=身份证
证件编号=410xxxxxxxxx
地址=xxxxxxxxx
------------------------------- |
|