Micro Focus QTP (UFT) Forums

Full Version: What is HWND property?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Code:
hwnd3 = Browser("Secure-Place8Image-FC-SRC").GetROProperty("hwnd")

could anyone please spacify what is hwnd property in QTP?
the above code return value like: 10291554

Thanks
Chetan
Nice question.

hWND breaks up into h+ WND = handle +Windows. You can reference a window through its handle.

Here is a nice definition of hWND:

A window handle (usually shortened to hWnd) is a unique identifer that Windows assigns to each window created. By window in this case we are referring to everything from command buttons and textboxes, to dialog boxes and full windows.
But i guess we can't use this property to identify the windows, because this HWND porperty changes everytime when the object is created. Please correct me if i am wrong.