Modify

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: 3.3.15.4 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 (4)

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

  • Version 3.3.14.2 deleted

Automatic ticket cleanup.

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

Replying to TicketCleanup:

Automatic ticket cleanup.

Even 3.3.15.0 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 3.3.15.4
  • Resolution set to Completed
  • Status changed from assigned to closed

Added by revision [12322] in version: 3.3.15.4

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 closed The owner will remain Jpm.
Author


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

 
Note: See TracTickets for help on using tickets.