﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3514	Add a treeview UDF calling $TVGN_LASTVISIBLE	Crazy	Jpm	"According to MSDN, there is a macro using TVGN_LASTVISIBLE:

TreeView_GetLastVisible

Retrieves the last expanded item in a tree-view control. This does not retrieve the last item visible in the tree-view window. You can use this macro, or you can explicitly send the TVM_GETNEXTITEM message with the TVGN_LASTVISIBLE flag.

However, this functionality seems not included in GuiTreeView.au3.
Its definition is somehow not consistent to TreeView_GetFirstVisible.
How about adding a UDF named _GUICtrlTreeView_GetLastVisible or _GUICtrlTreeView_GetLastExpandedItem?
Its implementation may look like:

Func _GUICtrlTreeView_GetLastVisible($hWnd)
	If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd)

	Return _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_LaSTVISIBLE, 0, 0, ""wparam"", ""lparam"", ""handle"")
EndFunc   ;==>_GUICtrlTreeView_GetLastVisible
"	Feature Request	closed	3.3.15.4	Standard UDFs		None	Completed	TVGN_LASTVISIBLE	
