Opened on Nov 5, 2016 at 6:15:07 PM
#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)
follow-up: 2 comment:1 by , on Nov 5, 2016 at 7:00:01 PM
| Version: | 3.3.14.2 |
|---|
comment:2 by , on Nov 29, 2016 at 5:28:54 AM
Replying to TicketCleanup:
Automatic ticket cleanup.
Even 3.3.15.0 doesn't support this function or something similar, too.
comment:3 by , on May 15, 2020 at 4:33:45 PM
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:4 by , on May 16, 2020 at 2:37:16 PM
| Milestone: | → 3.3.15.4 |
|---|---|
| Resolution: | → Completed |
| Status: | assigned → closed |
Added by revision [12322] in version: 3.3.15.4

Automatic ticket cleanup.