Modify

Opened 3 years ago

Last modified 3 years ago

#3514 new Feature Request

Add a treeview UDF calling $TVGN_LASTVISIBLE

Reported by: Crazy Owned by:
Milestone: Component: Standard UDFs
Version: Severity: None
Keywords: TVGN_LASTVISIBLE Cc:

Description

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

Attachments (0)

Change History (2)

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

  • Version 3.3.14.2 deleted

Automatic ticket cleanup.

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

Replying to TicketCleanup:

Automatic ticket cleanup.

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

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

Action
as new The ticket will remain with no owner.
Author


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

 
Note: See TracTickets for help on using tickets.