Commit 6f3ffa51 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

shdocvw: Call WindowSetResizable in put_Resizable.

parent 7b268a55
......@@ -1562,12 +1562,12 @@ static void test_ie_funcs(IUnknown *unk)
SET_EXPECT(Invoke_WINDOWSETRESIZABLE);
hres = IWebBrowser2_put_Resizable(wb, (exvb = VARIANT_TRUE));
ok(hres == S_OK, "put_Resizable failed: %08x\n", hres);
todo_wine CHECK_CALLED(Invoke_WINDOWSETRESIZABLE);
CHECK_CALLED(Invoke_WINDOWSETRESIZABLE);
SET_EXPECT(Invoke_WINDOWSETRESIZABLE);
hres = IWebBrowser2_put_Resizable(wb, (exvb = VARIANT_FALSE));
ok(hres == S_OK, "put_Resizable failed: %08x\n", hres);
todo_wine CHECK_CALLED(Invoke_WINDOWSETRESIZABLE);
CHECK_CALLED(Invoke_WINDOWSETRESIZABLE);
hres = IWebBrowser2_get_Resizable(wb, &b);
ok(hres == E_NOTIMPL, "get_Resizable failed: %08x\n", hres);
......
......@@ -864,10 +864,18 @@ static HRESULT WINAPI WebBrowser_get_Resizable(IWebBrowser2 *iface, VARIANT_BOOL
static HRESULT WINAPI WebBrowser_put_Resizable(IWebBrowser2 *iface, VARIANT_BOOL Value)
{
WebBrowser *This = WEBBROWSER_THIS(iface);
VARIANTARG arg;
DISPPARAMS dispparams = {&arg, NULL, 1, 0};
TRACE("(%p)->(%x)\n", This, Value);
/* It's InternetExplorer object's method. We have nothing to do here. */
/* In opposition to InternetExplorer, all we should do here is
* inform the embedder about the resizable change. */
V_VT(&arg) = VT_BOOL;
V_BOOL(&arg) = Value;
call_sink(This->doc_host.cps.wbe2, DISPID_WINDOWSETRESIZABLE, &dispparams);
return S_OK;
}
......
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