|
发表于 2018-5-22 11:13:43
|
显示全部楼层
回复 49# kk_lee69
#Region ### START Koda GUI section ### Form=
Global $Form1 = GUICreate("从数据库里获取姓名示例", 478, 412, 481, 210)
GUISetFont(11, 400, 0, "宋体")
Global $ListView1 = GUICtrlCreateListView("", 4, 8, 348, 258, $LVS_REPORT, $WS_EX_CLIENTEDGE);, $SS_CENTER, $LBS_EXTENDEDSEL) ;
GUICtrlSetFont(-1, 10, 400, 0, "微软雅黑")
_GUICtrlListView_AddColumn($ListView1, "序号", 50, 2);
_GUICtrlListView_AddColumn($ListView1, "姓名", 85, 1)
_GUICtrlListView_AddColumn($ListView1, "语文", 85, 1)
_GUICtrlListView_AddColumn($ListView1, "分数评定", 85, 1)
_GUICtrlListView_SetExtendedListViewStyle($ListView1, BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT, $LVS_EX_INFOTIP))
Local $totala = 38
For $i = 1 To 6
$totala += 1
$icoa[$i] = GUICtrlCreateIcon("", 2, 65, 13 - 1 / 2 + ($i * (22 + 1)), 20, 20);横条 274,0x06
GUICtrlSetImage(-1, "shell32.dll", $totala)
Next
_du()
;KC_lvdraw()
Global $Button1 = GUICtrlCreateButton("查看分数", 293, 346, 75, 25)
GUIRegisterMsg($WM_NOTIFY, "WM_NOTIFY")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ### |
|