shdocvw: Added WebBrowser::Resizable property implementation.

This commit is contained in:
Jacek Caban 2007-09-23 22:57:58 +02:00 committed by Alexandre Julliard
parent 2fe9af5507
commit 75eb61cdc6
2 changed files with 26 additions and 3 deletions

View File

@ -1117,6 +1117,23 @@ static void test_ie_funcs(IUnknown *unk)
hres = IWebBrowser2_put_FullScreen(wb, VARIANT_FALSE);
ok(hres == S_OK, "put_FullScreen failed: %08x\n", hres);
/* Resizable */
b = 0x100;
hres = IWebBrowser2_get_Resizable(wb, &b);
ok(hres == E_NOTIMPL, "get_Resizable failed: %08x\n", hres);
ok(b == 0x100, "b=%x\n", b);
hres = IWebBrowser2_put_Resizable(wb, VARIANT_TRUE);
ok(hres == S_OK, "put_Resizable failed: %08x\n", hres);
hres = IWebBrowser2_put_Resizable(wb, VARIANT_FALSE);
ok(hres == S_OK, "put_Resizable failed: %08x\n", hres);
hres = IWebBrowser2_get_Resizable(wb, &b);
ok(hres == E_NOTIMPL, "get_Resizable failed: %08x\n", hres);
ok(b == 0x100, "b=%x\n", b);
IWebBrowser2_Release(wb);
}

View File

@ -825,15 +825,21 @@ static HRESULT WINAPI WebBrowser_put_AddressBar(IWebBrowser2 *iface, VARIANT_BOO
static HRESULT WINAPI WebBrowser_get_Resizable(IWebBrowser2 *iface, VARIANT_BOOL *Value)
{
WebBrowser *This = WEBBROWSER_THIS(iface);
FIXME("(%p)->(%p)\n", This, Value);
TRACE("(%p)->(%p)\n", This, Value);
/* It's InternetExplorer object's method. We have nothing to do here. */
return E_NOTIMPL;
}
static HRESULT WINAPI WebBrowser_put_Resizable(IWebBrowser2 *iface, VARIANT_BOOL Value)
{
WebBrowser *This = WEBBROWSER_THIS(iface);
FIXME("(%p)->(%x)\n", This, Value);
return E_NOTIMPL;
TRACE("(%p)->(%x)\n", This, Value);
/* It's InternetExplorer object's method. We have nothing to do here. */
return S_OK;
}
#undef WEBBROWSER_THIS