Commit 92841b31 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

ieframe: Added InternetExplore::get_HWND implementation.

parent 1687c5cd
...@@ -358,8 +358,11 @@ static HRESULT WINAPI InternetExplorer_get_Name(IWebBrowser2 *iface, BSTR *Name) ...@@ -358,8 +358,11 @@ static HRESULT WINAPI InternetExplorer_get_Name(IWebBrowser2 *iface, BSTR *Name)
static HRESULT WINAPI InternetExplorer_get_HWND(IWebBrowser2 *iface, SHANDLE_PTR *pHWND) static HRESULT WINAPI InternetExplorer_get_HWND(IWebBrowser2 *iface, SHANDLE_PTR *pHWND)
{ {
InternetExplorer *This = impl_from_IWebBrowser2(iface); InternetExplorer *This = impl_from_IWebBrowser2(iface);
FIXME("(%p)->(%p)\n", This, pHWND);
return E_NOTIMPL; TRACE("(%p)->(%p)\n", This, pHWND);
*pHWND = (SHANDLE_PTR)This->frame_hwnd;
return S_OK;
} }
static HRESULT WINAPI InternetExplorer_get_FullName(IWebBrowser2 *iface, BSTR *FullName) static HRESULT WINAPI InternetExplorer_get_FullName(IWebBrowser2 *iface, BSTR *FullName)
......
...@@ -205,6 +205,22 @@ static void test_html_window(IWebBrowser2 *wb) ...@@ -205,6 +205,22 @@ static void test_html_window(IWebBrowser2 *wb)
IHTMLWindow2_Release(html_window); IHTMLWindow2_Release(html_window);
} }
static void test_window(IWebBrowser2 *wb)
{
SHANDLE_PTR handle = 0;
HWND hwnd = NULL;
char buf[100];
HRESULT hres;
hres = IWebBrowser2_get_HWND(wb, &handle);
ok(hres == S_OK, "get_HWND faile: %08x\n", hres);
ok(handle, "handle == 0\n");
hwnd = (HWND)handle;
GetClassNameA(hwnd, buf, sizeof(buf));
ok(!strcmp(buf, "IEFrame"), "Unexpected class name %s\n", buf);
}
static void test_navigate(IWebBrowser2 *wb, const char *url) static void test_navigate(IWebBrowser2 *wb, const char *url)
{ {
VARIANT urlv, emptyv; VARIANT urlv, emptyv;
...@@ -249,6 +265,7 @@ static void test_InternetExplorer(void) ...@@ -249,6 +265,7 @@ static void test_InternetExplorer(void)
test_visible(wb); test_visible(wb);
test_html_window(wb); test_html_window(wb);
test_window(wb);
test_navigate(wb, "http://test.winehq.org/tests/hello.html"); test_navigate(wb, "http://test.winehq.org/tests/hello.html");
advise_cp(unk, FALSE); advise_cp(unk, FALSE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment