Jacek Caban : mshtml: Added IViewObjectEx iface to plugin test.
Alexandre Julliard
julliard at winehq.org
Fri Dec 10 11:57:02 CST 2010
Module: wine
Branch: master
Commit: 9f182396fb600c550e26d6b03d6d88d7d6ceb29b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9f182396fb600c550e26d6b03d6d88d7d6ceb29b
Author: Jacek Caban <jacek at codeweavers.com>
Date: Fri Dec 10 16:38:19 2010 +0100
mshtml: Added IViewObjectEx iface to plugin test.
---
dlls/mshtml/tests/activex.c | 122 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 122 insertions(+), 0 deletions(-)
diff --git a/dlls/mshtml/tests/activex.c b/dlls/mshtml/tests/activex.c
index 16c91ec..a2a92c5 100644
--- a/dlls/mshtml/tests/activex.c
+++ b/dlls/mshtml/tests/activex.c
@@ -291,6 +291,11 @@ static HRESULT WINAPI QuickActivate_QuickActivate(IQuickActivate *iface, QACONTA
IOleClientSite_AddRef(container->pClientSite);
client_site = container->pClientSite;
+ control->dwMiscStatus = OLEMISC_SETCLIENTSITEFIRST|OLEMISC_ACTIVATEWHENVISIBLE|OLEMISC_INSIDEOUT
+ |OLEMISC_CANTLINKINSIDE|OLEMISC_RECOMPOSEONRESIZE;
+ control->dwViewStatus = 0x18;
+ control->dwPropNotifyCookie = 1;
+
return S_OK;
}
@@ -534,6 +539,118 @@ static const IDispatchVtbl DispatchVtbl = {
static IDispatch Dispatch = { &DispatchVtbl };
+static HRESULT WINAPI ViewObjectEx_QueryInterface(IViewObjectEx *iface, REFIID riid, void **ppv)
+{
+ return ax_qi(riid, ppv);
+}
+
+static ULONG WINAPI ViewObjectEx_AddRef(IViewObjectEx *iface)
+{
+ return 2;
+}
+
+static ULONG WINAPI ViewObjectEx_Release(IViewObjectEx *iface)
+{
+ return 1;
+}
+
+static HRESULT WINAPI ViewObjectEx_Draw(IViewObjectEx *iface, DWORD dwDrawAspect, LONG lindex, void *pvAspect, DVTARGETDEVICE *ptd,
+ HDC hdcTargetDev, HDC hdcDraw, LPCRECTL lprcBounds, LPCRECTL lprcWBoungs, BOOL (WINAPI*pfnContinue)(ULONG_PTR), ULONG_PTR dwContinue)
+{
+ ok(0, "unexpected call\n");
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI ViewObjectEx_GetColorSet(IViewObjectEx *iface, DWORD dwDrawAspect, LONG lindex, void *pvAspect, DVTARGETDEVICE *ptd,
+ HDC hicTargetDev, LOGPALETTE **ppColorSet)
+{
+ ok(0, "unexpected call\n");
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI ViewObjectEx_Freeze(IViewObjectEx *iface, DWORD dwDrawAspect, LONG lindex, void *pvAspect, DWORD *pdwFreeze)
+{
+ ok(0, "unexpected call\n");
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI ViewObjectEx_Unfreeze(IViewObjectEx *iface, DWORD dwFreeze)
+{
+ ok(0, "unexpected call\n");
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI ViewObjectEx_SetAdvise(IViewObjectEx *iface, DWORD aspects, DWORD advf, IAdviseSink *pAdvSink)
+{
+ ok(0, "unexpected call\n");
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI ViewObjectEx_GetAdvise(IViewObjectEx *iface, DWORD *pAspects, DWORD *pAdvf, IAdviseSink **ppAdvSink)
+{
+ ok(0, "unexpected call\n");
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI ViewObjectEx_GetExtent(IViewObjectEx *iface, DWORD dwDrawAspect, LONG lindex, DVTARGETDEVICE *ptd, LPSIZEL lpsizel)
+{
+ ok(0, "unexpected call\n");
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI ViewObjectEx_GetRect(IViewObjectEx *iface, DWORD dwAspect, LPRECTL pRect)
+{
+ ok(0, "unexpected call\n");
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI ViewObjectEx_GetViewStatus(IViewObjectEx *iface, DWORD *pdwStatus)
+{
+ ok(0, "unexpected call\n");
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI ViewObjectEx_QueryHitPoint(IViewObjectEx *iface, DWORD dwAspect, LPCRECT pRectBounds, POINT ptlLoc,
+ LONG lCloseHint, DWORD *pHitResult)
+{
+ ok(0, "unexpected call\n");
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI ViewObjectEx_QueryHitRect(IViewObjectEx *iface, DWORD dwAspect, LPCRECT pRectBounds, LPCRECT pRectLoc,
+ LONG lCloseHint, DWORD *pHitResult)
+{
+ ok(0, "unexpected call\n");
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI ViewObjectEx_GetNaturalExtent(IViewObjectEx *iface, DWORD dwAspect, LONG lindex, DVTARGETDEVICE *ptd,
+ HDC hicTargetDev, DVEXTENTINFO *pExtentIngo, LPSIZEL pSizel)
+{
+ ok(0, "unexpected call\n");
+ return E_NOTIMPL;
+}
+
+static const IViewObjectExVtbl ViewObjectExVtbl = {
+ ViewObjectEx_QueryInterface,
+ ViewObjectEx_AddRef,
+ ViewObjectEx_Release,
+ ViewObjectEx_Draw,
+ ViewObjectEx_GetColorSet,
+ ViewObjectEx_Freeze,
+ ViewObjectEx_Unfreeze,
+ ViewObjectEx_SetAdvise,
+ ViewObjectEx_GetAdvise,
+ ViewObjectEx_GetExtent,
+ ViewObjectEx_GetRect,
+ ViewObjectEx_GetViewStatus,
+ ViewObjectEx_QueryHitPoint,
+ ViewObjectEx_QueryHitRect,
+ ViewObjectEx_GetNaturalExtent
+};
+
+static IViewObjectEx ViewObjectEx = { &ViewObjectExVtbl };
+
static HRESULT ax_qi(REFIID riid, void **ppv)
{
if(IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IOleControl)) {
@@ -556,6 +673,11 @@ static HRESULT ax_qi(REFIID riid, void **ppv)
return S_OK;
}
+ if(IsEqualGUID(riid, &IID_IViewObject) || IsEqualGUID(riid, &IID_IViewObject2) || IsEqualGUID(riid, &IID_IViewObjectEx)) {
+ *ppv = &ViewObjectEx;
+ return S_OK;
+ }
+
*ppv = NULL;
return E_NOINTERFACE;
}
More information about the wine-cvs
mailing list