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
b09f5c31
Commit
b09f5c31
authored
Jun 22, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IOleInPlaceUIWindow tests.
parent
e429e039
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
4 deletions
+24
-4
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+24
-4
No files found.
dlls/mshtml/tests/htmldoc.c
View file @
b09f5c31
...
...
@@ -1073,7 +1073,8 @@ static IOleContainer OleContainer = { &OleContainerVtbl };
static
HRESULT
WINAPI
InPlaceFrame_QueryInterface
(
IOleInPlaceFrame
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
return
QueryInterface
(
riid
,
ppv
);
ok
(
0
,
"unexpected call
\n
"
);
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
InPlaceFrame_AddRef
(
IOleInPlaceFrame
*
iface
)
...
...
@@ -1118,6 +1119,13 @@ static HRESULT WINAPI InPlaceFrame_SetBorderSpace(IOleInPlaceFrame *iface,
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
InPlaceUIWindow_SetActiveObject
(
IOleInPlaceFrame
*
iface
,
IOleInPlaceActiveObject
*
pActiveObject
,
LPCOLESTR
pszObjName
)
{
ok
(
0
,
"unexpected call
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
InPlaceFrame_SetActiveObject
(
IOleInPlaceFrame
*
iface
,
IOleInPlaceActiveObject
*
pActiveObject
,
LPCOLESTR
pszObjName
)
{
...
...
@@ -1198,6 +1206,20 @@ static const IOleInPlaceFrameVtbl InPlaceFrameVtbl = {
static
IOleInPlaceFrame
InPlaceFrame
=
{
&
InPlaceFrameVtbl
};
static
const
IOleInPlaceFrameVtbl
InPlaceUIWindowVtbl
=
{
InPlaceFrame_QueryInterface
,
InPlaceFrame_AddRef
,
InPlaceFrame_Release
,
InPlaceFrame_GetWindow
,
InPlaceFrame_ContextSensitiveHelp
,
InPlaceFrame_GetBorder
,
InPlaceFrame_RequestBorderSpace
,
InPlaceFrame_SetBorderSpace
,
InPlaceUIWindow_SetActiveObject
,
};
static
IOleInPlaceFrame
InPlaceUIWindow
=
{
&
InPlaceUIWindowVtbl
};
static
HRESULT
WINAPI
InPlaceSite_QueryInterface
(
IOleInPlaceSiteEx
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
return
QueryInterface
(
riid
,
ppv
);
...
...
@@ -1258,7 +1280,7 @@ static HRESULT WINAPI InPlaceSite_GetWindowContext(IOleInPlaceSiteEx *iface,
*
ppFrame
=
&
InPlaceFrame
;
ok
(
ppDoc
!=
NULL
,
"ppDoc = NULL
\n
"
);
if
(
ppDoc
)
*
ppDoc
=
NULL
;
*
ppDoc
=
(
IOleInPlaceUIWindow
*
)
&
InPlaceUIWindow
;
ok
(
lprcPosRect
!=
NULL
,
"lprcPosRect = NULL
\n
"
);
if
(
lprcPosRect
)
memcpy
(
lprcPosRect
,
&
rect
,
sizeof
(
RECT
));
...
...
@@ -2209,8 +2231,6 @@ static HRESULT QueryInterface(REFIID riid, void **ppv)
*
ppv
=
&
OleContainer
;
else
if
(
IsEqualGUID
(
&
IID_IOleWindow
,
riid
)
||
IsEqualGUID
(
&
IID_IOleInPlaceSite
,
riid
))
*
ppv
=
&
InPlaceSiteEx
;
else
if
(
IsEqualGUID
(
&
IID_IOleInPlaceUIWindow
,
riid
)
||
IsEqualGUID
(
&
IID_IOleInPlaceFrame
,
riid
))
*
ppv
=
&
InPlaceFrame
;
else
if
(
IsEqualGUID
(
&
IID_IOleCommandTarget
,
riid
))
*
ppv
=
&
OleCommandTarget
;
else
if
(
IsEqualGUID
(
&
IID_IDispatch
,
riid
))
...
...
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