WindowFromHandle Method

Applies to TestComplete 15.31, last modified on March 17, 2022

Description

The WindowFromHandle method lets you get the sTestComplete Window object for a window specified by its handle.

Declaration

TestObj.WindowFromHandle(Handle)

TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
Handle [in]    Required    Integer    
Result The Window object

Applies To

The method is applied to the following objects:

View Mode

To view this method in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Parameters

The method has the following parameter:

Handle

The handle of the desired window.

Result Value

The Window object whose handle is specified. If no window is found for the specified handle, the WindowFrom Handle method returns an empty stub object.

Example

To view an example that demonstrates how to use the WindowFromHandle method, see Clicking In-place Editors' Buttons in Syncfusion GridGroupingControl.

See Also

Window Object

Highlight search results