Commit 47301026 authored by Jared Lapsley's avatar Jared Lapsley Committed by Alexandre Julliard

shdocvw: WebBrowser_get_Busy implementation.

parent fd69abab
......@@ -78,6 +78,7 @@ static void navigate_complete(DocHost *This)
SysFreeString(V_BSTR(&url));
if(disp)
IDispatch_Release(disp);
This->busy = VARIANT_FALSE;
}
void object_available(DocHost *This)
......
......@@ -427,6 +427,8 @@ static void on_before_navigate2(DocHost *This, LPCWSTR url, const BYTE *post_dat
dispparams.rgdispidNamedArgs = NULL;
dispparams.rgvarg = params;
This->busy = VARIANT_TRUE;
V_VT(params) = VT_BOOL|VT_BYREF;
V_BOOLREF(params) = cancel;
......
......@@ -99,6 +99,7 @@ struct DocHost {
VARIANT_BOOL silent;
VARIANT_BOOL offline;
VARIANT_BOOL busy;
ConnectionPointContainer cps;
};
......
......@@ -462,8 +462,11 @@ static HRESULT WINAPI WebBrowser_get_LocationURL(IWebBrowser2 *iface, BSTR *Loca
static HRESULT WINAPI WebBrowser_get_Busy(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
{
WebBrowser *This = WEBBROWSER_THIS(iface);
FIXME("(%p)->(%p)\n", This, pBool);
return E_NOTIMPL;
TRACE("(%p)->(%p)\n", This, pBool);
*pBool = This->doc_host.busy;
return S_OK;
}
static HRESULT WINAPI WebBrowser_Quit(IWebBrowser2 *iface)
......
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