|
本帖最后由 ziyaxian 于 2019-8-24 23:16 编辑
#include <GuiListView.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$hGui = GuiCreate('字体颜色', 400, 300)
Local $lvsExStyle = BitOr($lvs_ex_fullrowselect, _
$lvs_ex_gridlines, _
$lvs_ex_doublebuffer)
Local $lvs1 = GuiCtrlCreateListView("List1|View|Test", 5, 5, 390, 260, $lvs_report, $lvsExStyle)
For $d = 1 to 20
$var = "lvs item " & $d
$var &= "|" & $var & " - 1|" & $var & " - 2"
GuiCtrlCreateListViewItem($var, $lvs1)
Next
GUISetState()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
我想实现的是当$d为奇数时,ListView的字体颜色为红色,谢谢!! |
|