Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the handle of the Windows Internet Explorer main window.
This property is read-only.
Syntax
HRESULT get_HWND(
[out] LONG nHWND
);
Property value
| Value | Meaning |
|---|---|
| nHWND | Long that receives the window handle. |
Error codes
Returns S_OK if successful, or an error value otherwise.
Remarks
Internet Explorer 7. With the introduction of tabbed browsing, the return value of this method can be ambiguous. To alleviate confusion and maintain the highest level of compatibility with existing applications, this method returns a handle to the top-level window frame, not the currently selected tab.
Requirements
Minimum supported client |
Windows XP [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
Exdisp.h |
Library |
Shdocvw.dll |