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.
This method uses the HWND property to get the HWND of the current browser window.
HRESULT IWebBrowser2::get_HWND(
long* pHWND
);
- pHWND
[out] Pointer to a long value that receives the window handle.
This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:
- S_OK
The method completed successfully.
DISPID_WEBBROWSER_HWND
The DISPID is defined in piedocvw.h. Use this value to identify the event handler when implementing IDispatch::Invoke.
Pocket PC: Windows Mobile Version 5.0 and later
Smartphone: Windows Mobile Version 5.0 and later
OS Versions: Windows CE 5.01 and later
Header: piedocvw.h
Library: piedocvw.lib
Send Feedback on this topic to the authors