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)
follow-up: 2 comment:1 by , 9 years ago
| Version: | 3.3.14.2 |
|---|
comment:2 by , 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 , 6 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:4 by , 6 years ago
| Milestone: | → 3.3.15.4 |
|---|---|
| Resolution: | → Completed |
| Status: | assigned → closed |
Added by revision [12322] in version: 3.3.15.4

Automatic ticket cleanup.