Opened 7 years ago

Closed 4 years ago

#3514 closed Feature Request (Completed)

Add a treeview UDF calling $TVGN_LASTVISIBLE

Reported by: Crazy Owned by: Jpm
Milestone: Component: Standard UDFs
Version: Severity: None


According to MSDN, there is a macro using TVGN_LASTVISIBLE:


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

Attachments (0)

Change History (4)

comment:1 follow-up: Changed 7 years ago by TicketCleanup

  • Version deleted

Automatic ticket cleanup.

comment:2 in reply to: ↑ 1 Changed 7 years ago by Crazy

Replying to TicketCleanup:

Automatic ticket cleanup.

Even doesn't support this function or something similar, too.

comment:3 Changed 4 years ago by Jpm

  • Owner set to Jpm
  • Status changed from new to assigned

comment:4 Changed 4 years ago by Jpm

  • Milestone set to
  • Resolution set to Completed
  • Status changed from assigned to closed

Added by revision [12322] in version:

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Jpm.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.