shdocvw: Call WindowSetResizable in put_Resizable.

This commit is contained in:
Jacek Caban 2008-01-14 16:26:36 +01:00 committed by Alexandre Julliard
parent 7b268a5583
commit 6f3ffa51f8
2 changed files with 11 additions and 3 deletions

View File

@ -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);

View File

@ -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;
}