ListView入取ACC后,列表如何直接显示最后一行
ListView读取了ACC后,显示的还是在第一行,如何让他读取完后直接显示最后一行? Local $num1 = _GUICtrlListView_GetItemCount($listview1)_GUICtrlListView_Scroll($listview1, 0, $num1 * 18);估计默认行高为18
_GUICtrlListView_SetItemSelected($listview1, $num1 - 1);索引从0开始,所以减1
这样试试看 #include <GuiListView.au3>
GUICreate('')
Local $hListView = GUICtrlCreateListView('Items ', 2, 2, 394, 388)
GUISetState()
_GUICtrlListView_BeginUpdate($hListView)
For $i = 1 To Random(100, 2000, 1)
GUICtrlCreateListViewItem("Item " & $i, $hListView)
Next
Local $Ix = _GUICtrlListView_GetItemCount($hListView) - 1
_GUICtrlListView_EnsureVisible($hListView, $Ix)
_GUICtrlListView_EndUpdate($hListView)
Do
Until GUIGetMsg() = -3
GUIDelete()
页:
[1]