HWND Structure

Progress Software Corporation - Testing Framework 2018.1 Automation Infrastructure

Note: This API is now obsolete.

Drop-in P/Invoke replacement for IntPtr window handle. Includes implicit typecasts for IntPtr, System.Windows.Window, and System.Windows.Forms.Control. This class performs no caching; all property accesses translate to immediate Win32 function calls, and failed calls will throw exceptions (unlike the P/Invoke entry points themselves).

Namespace:  ArtOfTest.Common.Win32
Assembly:  ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax

[ObsoleteAttribute("Deprecated. Please use Telerik.TestStudio.Core.Win32.HWND instead.")]
public struct HWND

The HWND type exposes the following members.

Properties

  NameDescription
Public propertyChildren
Public propertyClassName
Public propertyDescendants
Public propertyHINSTANCE
This is useful because some frameworks store their DLL instance handle here, allowing you to loosely identify the framework that is managing the window.
Public propertyId
Public propertyIsEnabled
Public propertyIsNull
Public propertyIsWindow
Public propertyOwner
Public propertyParent
Public propertyProcessId
Public propertyRoot
Public propertyRootOwner
Public propertyText
Public propertyThreadId
Public propertyWindowRect
Gets or sets the dimensions of the bounding rectangle of the specified window. The dimensions are given in screen coordinates that are relative to the screen origin.
Top
Methods

  NameDescription
Public methodEquals (Overrides ValueTypeEquals(Object).)
Public methodGetHashCode (Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToInt32
Public methodToString (Overrides ValueTypeToString.)
Public methodToString(String)
Top
Operators

  NameDescription
Public operatorStatic memberEquality(IntPtr, HWND)
Public operatorStatic memberEquality(HWND, HWND)
Public operatorStatic memberEquality(HWND, IntPtr)
Public operatorStatic member(Int32 to HWND)
Public operatorStatic member(IntPtr to HWND)
Public operatorStatic member(AutomationElement to HWND)
Public operatorStatic member(Control to HWND)
Public operatorStatic member(NativeWindow to HWND)
Public operatorStatic member(Window to HWND)
Public operatorStatic member(HWND to Int32)
Public operatorStatic member(HWND to IntPtr)
Public operatorStatic member(HWND to Window)
Public operatorStatic member(HWND to Control)
Public operatorStatic member(HWND to NativeWindow)
Public operatorStatic member(HWND to AutomationElement)
Public operatorStatic memberInequality(IntPtr, HWND)
Public operatorStatic memberInequality(HWND, HWND)
Public operatorStatic memberInequality(HWND, IntPtr)
Top
Fields

  NameDescription
Public fieldStatic memberHWND_BOTTOM
Public fieldStatic memberHWND_BROADCAST
Public fieldStatic memberHWND_MESSAGE
Public fieldStatic memberHWND_NOTOPMOST
Public fieldStatic memberHWND_TOP
Public fieldStatic memberHWND_TOPMOST
Public fieldStatic memberNULL
Top
See Also

Reference