shdocvw: Added [get|put]_Visible implementation.
This commit is contained in:
parent
707a4f18f7
commit
9d9b909466
|
@ -115,6 +115,8 @@ typedef struct {
|
|||
|
||||
HWND shell_embedding_hwnd;
|
||||
|
||||
VARIANT_BOOL visible;
|
||||
|
||||
DocHost doc_host;
|
||||
} WebBrowser;
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
#include "wine/debug.h"
|
||||
#include "shdocvw.h"
|
||||
#include "exdispid.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
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)
|
||||
{
|
||||
WebBrowser *This = WEBBROWSER_THIS(iface);
|
||||
FIXME("(%p)->(%x)\n", This, Value);
|
||||
return E_NOTIMPL;
|
||||
VARIANTARG arg;
|
||||
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)
|
||||
|
@ -842,6 +856,8 @@ HRESULT WebBrowser_Create(IUnknown *pOuter, REFIID riid, void **ppv)
|
|||
|
||||
DocHost_Init(&ret->doc_host, (IDispatch*)WEBBROWSER2(ret));
|
||||
|
||||
ret->visible = VARIANT_TRUE;
|
||||
|
||||
WebBrowser_OleObject_Init(ret);
|
||||
WebBrowser_ViewObject_Init(ret);
|
||||
WebBrowser_Persist_Init(ret);
|
||||
|
|
Loading…
Reference in New Issue