Option Explicit
Sub Main()
Include "Common.TWin32TreeView"
Dim wtv As TWin32TreeView
'Window("Desktop Window").Attach
Window("Application=Explorer.exe ClassName=CabinetWClass TypeName=Window").Attach
Set wtv = New TWin32TreeView
wtv.Handle = TreeView("Index=1").hwnd
Dim sMsg As String
sMsg = "Root item is " & wtv.GetRootItemText
sMsg = sMsg & vbCrLf & "Selected item is : " & wtv.GetSelectedItemText
'MsgBox sMsg
If wtv.IsSelectedItemExpanded Then
MsgBox "selected node is expanded"
Else
MsgBox "it is not yet expanded"
End If
End Sub
Friday, July 25, 2008
Test code
This is only a test of formatting source code in Blogger. See http://code.google.com/p/syntaxhighlighter/ for details. Use Notepad++ when copying source over from clipboard.
Subscribe to:
Post Comments (Atom)
Install Winget on Windows 2022 or Windows 10 LSTC
Install Winget on Windows 2022 or Windows 10 LTSC Install Pre-reqs Install Microsoft.UI.Xaml/2.8.6 Navigate to https://www.nuget.org/pa...
-
Installing MonoDevelop in OpenSUSE 12.2 from its repository was very easy. When running it for the first time though I got the message: Th...
-
Tried to update my Ubuntu host today and it did pickup that new version of VirtualBox is available (4.1.8). All other packages installed pro...
-
This is quick start guide how to run ssh server on QNX. Tested on QNX 6.5 (650SP1-VM.tar). # ssh-keygen -t dsa -b 1024 -f /etc/ssh/ssh...
No comments:
Post a Comment