本帖最后由 yhxhappy 于 2010-12-29 09:42 编辑
现我知道如何设置ListView整个表的字体或某一行的颜色,但是却没办法设置某一行的字体权值为加粗#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
GUICreate("listview", 400, 250)
$listview = GUICtrlCreateListView("col1 |col2 |col3 ", 10, 10, 380, 150);,$LVS_SORTDESCENDING)
GUICtrlSetFont($listview,16,800)
$button = GUICtrlCreateButton("Value?", 75, 170, 70, 20)
$item1 = GUICtrlCreateListViewItem("item2|col22|col23", $listview)
$item2 = GUICtrlCreateListViewItem("item1|col12|col13", $listview)
$item3 = GUICtrlCreateListViewItem("item3|col32|col33", $listview)
GUICtrlSetColor(-1, 0x0000FF)
GUISetState()
While 1
$msg = GUIGetMsg()
Switch $msg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|