Commit c9e6a963 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added better IActiveScriptSiteWindow implementation.

parent 44fb2605
......@@ -469,15 +469,21 @@ static ULONG WINAPI ActiveScriptSiteWindow_Release(IActiveScriptSiteWindow *ifac
static HRESULT WINAPI ActiveScriptSiteWindow_GetWindow(IActiveScriptSiteWindow *iface, HWND *phwnd)
{
ScriptHost *This = impl_from_IActiveScriptSiteWindow(iface);
FIXME("(%p)->(%p)\n", This, phwnd);
return E_NOTIMPL;
TRACE("(%p)->(%p)\n", This, phwnd);
if(!This->window || !This->window->base.outer_window || !This->window->base.outer_window->doc_obj)
return E_UNEXPECTED;
*phwnd = This->window->base.outer_window->doc_obj->hwnd;
return S_OK;
}
static HRESULT WINAPI ActiveScriptSiteWindow_EnableModeless(IActiveScriptSiteWindow *iface, BOOL fEnable)
{
ScriptHost *This = impl_from_IActiveScriptSiteWindow(iface);
FIXME("(%p)->(%x)\n", This, fEnable);
return E_NOTIMPL;
return S_OK;
}
static const IActiveScriptSiteWindowVtbl ActiveScriptSiteWindowVtbl = {
......
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