Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9f182396
Commit
9f182396
authored
Dec 10, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IViewObjectEx iface to plugin test.
parent
b3f0f07d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
122 additions
and
0 deletions
+122
-0
activex.c
dlls/mshtml/tests/activex.c
+122
-0
No files found.
dlls/mshtml/tests/activex.c
View file @
9f182396
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment