0

我只知道ControlListView函数:http ://www.autoitscript.com/autoit3/docs/functions/ControlListView.htm

并且有一个GetText带有行和列两个参数的选项,但是我看不到任何内容来获取列标题的文本,这是用户可以通过鼠标单击的地方,例如按该列排序等。

4

1 回答 1

0

您可以尝试使用_GUICtrlListView_GetColumn。此函数返回一个数组,其中包含有关给定 ListView 列的信息。

Local $aCol = _GUICtrlListView_GetColumn($lvwMsgTable, 0)
ConsoleWrite('Title of column 0: ' & $aCol[5] & @LF)

$aCol = _GUICtrlListView_GetColumn($lvwMsgTable, 1)
ConsoleWrite('Title of column 1: ' & $aCol[5] & @LF)

$aCol = _GUICtrlListView_GetColumn($lvwMsgTable, 2)
ConsoleWrite('Title of column 2: ' & $aCol[5] & @LF)

我不知道这是否适用于 TListView。

于 2013-08-15T07:11:49.677 回答