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)
CPP Quick Guide
Basics Hello world User input While loop If statement For loop Switch statement Read file using ifstream Write to a file using ofstr...
-
Minimal OPC UA client that auto generates self signed certificate on startup in C# This is minimal OPC UA client in C# that demonstrates se...
-
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...
No comments:
Post a Comment