UtilUIAutomationGetToolbarButtons Method
Gets the buttons of a Toolbar control (a window with "ToolbarWin32" class name).
Namespace: DevCase.Core.Diagnostics.ProcessesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
No code example is currently available or this language may not be supported.
- hWnd IntPtr
-
A handle to the Toolbar control (a window with "ToolbarWin32" class name).
ReadOnlyCollectionNativeToolBarButton
The toolbar buttons.
This is a code example.
No code example is currently available or this language may not be supported.
Dim hWnd As IntPtr = NotificationAreaUtil.VisibleHwnd
Dim buttons As ReadOnlyCollection(Of NativeToolBarButton) = UIAutomationUtil.GetToolbarButtons(hWnd)
For Each ntb As NativeToolBarButton In buttons
Dim sb As New StringBuilder()
sb.AppendLine(String.Format("{0}: {1}", NameOf(ntb.ProcessId), ntb.ProcessId))
sb.AppendLine(String.Format("{0}: {1}", NameOf(ntb.ImageListHandle), ntb.ImageListHandle.ToString()))
sb.AppendLine(String.Format("{0}: {1}", NameOf(ntb.ButtonIndex), ntb.ButtonIndex))
sb.AppendLine(String.Format("{0}: {1}", NameOf(ntb.BitmapIndex), ntb.BitmapIndex))
sb.AppendLine(String.Format("{0}: {1}", NameOf(ntb.CommandId), ntb.CommandId))
sb.AppendLine(String.Format("{0}: {1}", NameOf(ntb.State), ntb.State.ToString()))
sb.AppendLine(String.Format("{0}: {1}", NameOf(ntb.Style), ntb.Style.ToString()))
sb.AppendLine(String.Format("{0}: {1}", NameOf(ntb.ToolTipText), ntb.ToolTipText))
sb.AppendLine(String.Format("{0}: {1}", NameOf(ntb.Bounds), ntb.Bounds.ToString()))
Console.WriteLine(sb.ToString())
Next ntb
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.