FindWindowByHwnd Method

Applies to:  Windows collection
See also:  FindWindow method

Finds the window in a collection corresponding to a specific window handle.

Syntax:

Set objWindow = object.FindWindowByHwnd(hWnd)

The FindNextWindow method syntax has these parts:

Part Description
objWindow An object variable to hold the window you want to find.
object The name of a Windows collection.
hWnd The window handle of the window being searched for.

Example:

Displaying a list of open windows

 

Home Copyright and Disclaimer