UFT Extensibility Agent library 1.3
GetHWND Method
Description
Returns the window handle of the specified object.
Syntax
Visual Basic
Public Function GetHWND( _
   ByVal objId As Variant _
) As ULong
Parameters
objId
Return Type
The window handle of the lowest-level window containing the specified object. If the object is a window, the HWND of the object itself is returned.
Remarks

Used to record snapshot, set focus, bringing window to top, or any other action requiring Window's APIs.

Note that an attempt to perform an action on a window to which that action cannot apply may result in the action being performed on a containing window. For example, an attempt to bring to the foreground an object on the bottom of a hierarchy may bring a containing window and all other object in the window to the foreground with the specified object.

See Also