Module: wine Branch: master Commit: 75eb61cdc6bcc69493aa70cb63cbb3f224542b58 URL: http://source.winehq.org/git/wine.git/?a=commit;h=75eb61cdc6bcc69493aa70cb63...
Author: Jacek Caban jacek@codeweavers.com Date: Sun Sep 23 22:57:58 2007 +0200
shdocvw: Added WebBrowser::Resizable property implementation.
---
dlls/shdocvw/tests/webbrowser.c | 17 +++++++++++++++++ dlls/shdocvw/webbrowser.c | 12 +++++++++--- 2 files changed, 26 insertions(+), 3 deletions(-)
diff --git a/dlls/shdocvw/tests/webbrowser.c b/dlls/shdocvw/tests/webbrowser.c index c4b76ec..2b38154 100644 --- a/dlls/shdocvw/tests/webbrowser.c +++ b/dlls/shdocvw/tests/webbrowser.c @@ -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); }
diff --git a/dlls/shdocvw/webbrowser.c b/dlls/shdocvw/webbrowser.c index cc27632..c9af82f 100644 --- a/dlls/shdocvw/webbrowser.c +++ b/dlls/shdocvw/webbrowser.c @@ -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