Commit 9d9b9094 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

shdocvw: Added [get|put]_Visible implementation.

parent 707a4f18
...@@ -115,6 +115,8 @@ typedef struct { ...@@ -115,6 +115,8 @@ typedef struct {
HWND shell_embedding_hwnd; HWND shell_embedding_hwnd;
VARIANT_BOOL visible;
DocHost doc_host; DocHost doc_host;
} WebBrowser; } WebBrowser;
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "wine/debug.h" #include "wine/debug.h"
#include "shdocvw.h" #include "shdocvw.h"
#include "exdispid.h"
WINE_DEFAULT_DEBUG_CHANNEL(shdocvw); WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
...@@ -486,15 +487,28 @@ static HRESULT WINAPI WebBrowser_get_Path(IWebBrowser2 *iface, BSTR *Path) ...@@ -486,15 +487,28 @@ static HRESULT WINAPI WebBrowser_get_Path(IWebBrowser2 *iface, BSTR *Path)
static HRESULT WINAPI WebBrowser_get_Visible(IWebBrowser2 *iface, VARIANT_BOOL *pBool) static HRESULT WINAPI WebBrowser_get_Visible(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
{ {
WebBrowser *This = WEBBROWSER_THIS(iface); WebBrowser *This = WEBBROWSER_THIS(iface);
FIXME("(%p)->(%p)\n", This, pBool);
return E_NOTIMPL; TRACE("(%p)->(%p)\n", This, pBool);
*pBool = This->visible;
return S_OK;
} }
static HRESULT WINAPI WebBrowser_put_Visible(IWebBrowser2 *iface, VARIANT_BOOL Value) static HRESULT WINAPI WebBrowser_put_Visible(IWebBrowser2 *iface, VARIANT_BOOL Value)
{ {
WebBrowser *This = WEBBROWSER_THIS(iface); WebBrowser *This = WEBBROWSER_THIS(iface);
FIXME("(%p)->(%x)\n", This, Value); VARIANTARG arg;
return E_NOTIMPL; DISPPARAMS dispparams = {&arg, NULL, 1, 0};
TRACE("(%p)->(%x)\n", This, Value);
This->visible = Value;
V_VT(&arg) = VT_BOOL;
V_BOOL(&arg) = Value;
call_sink(This->doc_host.cp_wbe2, DISPID_ONVISIBLE, &dispparams);
return S_OK;
} }
static HRESULT WINAPI WebBrowser_get_StatusBar(IWebBrowser2 *iface, VARIANT_BOOL *pBool) static HRESULT WINAPI WebBrowser_get_StatusBar(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
...@@ -842,6 +856,8 @@ HRESULT WebBrowser_Create(IUnknown *pOuter, REFIID riid, void **ppv) ...@@ -842,6 +856,8 @@ HRESULT WebBrowser_Create(IUnknown *pOuter, REFIID riid, void **ppv)
DocHost_Init(&ret->doc_host, (IDispatch*)WEBBROWSER2(ret)); DocHost_Init(&ret->doc_host, (IDispatch*)WEBBROWSER2(ret));
ret->visible = VARIANT_TRUE;
WebBrowser_OleObject_Init(ret); WebBrowser_OleObject_Init(ret);
WebBrowser_ViewObject_Init(ret); WebBrowser_ViewObject_Init(ret);
WebBrowser_Persist_Init(ret); WebBrowser_Persist_Init(ret);
......
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