Modify

Opened 9 years ago

Closed 6 years ago

#3514 closed Feature Request (Completed)

Add a treeview UDF calling $TVGN_LASTVISIBLE

Reported by: Crazy Owned by: J-Paul Mesnage
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 by TicketCleanup, 9 years ago

Version: 3.3.14.2

Automatic ticket cleanup.

in reply to:  1 comment:2 by Crazy, 9 years ago

Replying to TicketCleanup:

Automatic ticket cleanup.

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

comment:3 by J-Paul Mesnage, 6 years ago

Owner: set to J-Paul Mesnage
Status: newassigned

comment:4 by J-Paul Mesnage, 6 years ago

Milestone: 3.3.15.4
Resolution: Completed
Status: assignedclosed

Added by revision [12322] in version: 3.3.15.4

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.