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
438f19b9
Commit
438f19b9
authored
Sep 16, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 16, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added SetClientSite implementation.
parent
b7819c24
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
4 deletions
+29
-4
oleobject.c
dlls/shdocvw/oleobject.c
+27
-4
shdocvw.h
dlls/shdocvw/shdocvw.h
+2
-0
No files found.
dlls/shdocvw/oleobject.c
View file @
438f19b9
...
...
@@ -56,15 +56,36 @@ static ULONG WINAPI OleObject_Release(IOleObject *iface)
static
HRESULT
WINAPI
OleObject_SetClientSite
(
IOleObject
*
iface
,
LPOLECLIENTSITE
pClientSite
)
{
WebBrowser
*
This
=
OLEOBJ_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pClientSite
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pClientSite
);
if
(
This
->
client
==
pClientSite
)
return
S_OK
;
if
(
This
->
client
)
IOleClientSite_Release
(
This
->
client
);
if
(
pClientSite
)
IOleClientSite_AddRef
(
pClientSite
);
This
->
client
=
pClientSite
;
return
S_OK
;
}
static
HRESULT
WINAPI
OleObject_GetClientSite
(
IOleObject
*
iface
,
LPOLECLIENTSITE
*
ppClientSite
)
{
WebBrowser
*
This
=
OLEOBJ_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
ppClientSite
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
ppClientSite
);
if
(
!
ppClientSite
)
return
E_INVALIDARG
;
if
(
This
->
client
)
IOleClientSite_AddRef
(
This
->
client
);
*
ppClientSite
=
This
->
client
;
return
S_OK
;
}
static
HRESULT
WINAPI
OleObject_SetHostNames
(
IOleObject
*
iface
,
LPCOLESTR
szContainerApp
,
...
...
@@ -427,4 +448,6 @@ void WebBrowser_OleObject_Init(WebBrowser *This)
This
->
lpOleObjectVtbl
=
&
OleObjectVtbl
;
This
->
lpOleInPlaceObjectVtbl
=
&
OleInPlaceObjectVtbl
;
This
->
lpOleControlVtbl
=
&
OleControlVtbl
;
This
->
client
=
NULL
;
}
dlls/shdocvw/shdocvw.h
View file @
438f19b9
...
...
@@ -64,6 +64,8 @@ typedef struct {
const
IConnectionPointContainerVtbl
*
lpConnectionPointContainerVtbl
;
LONG
ref
;
IOleClientSite
*
client
;
}
WebBrowser
;
#define WEBBROWSER(x) ((IWebBrowser*) &(x)->lpWebBrowser2Vtbl)
...
...
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