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
80dcc8b8
Commit
80dcc8b8
authored
Apr 14, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Store IOleInPlaceSite in WebBrowser object.
parent
1e0f378c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
13 deletions
+22
-13
oleobject.c
dlls/shdocvw/oleobject.c
+21
-13
shdocvw.h
dlls/shdocvw/shdocvw.h
+1
-0
No files found.
dlls/shdocvw/oleobject.c
View file @
80dcc8b8
...
@@ -142,6 +142,11 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, LPOLECLIENTSITE
...
@@ -142,6 +142,11 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, LPOLECLIENTSITE
This
->
shell_embedding_hwnd
=
NULL
;
This
->
shell_embedding_hwnd
=
NULL
;
}
}
if
(
This
->
inplace
)
{
IOleInPlaceSite_Release
(
This
->
inplace
);
This
->
inplace
=
NULL
;
}
if
(
This
->
hostui
)
if
(
This
->
hostui
)
IDocHostUIHandler_Release
(
This
->
hostui
);
IDocHostUIHandler_Release
(
This
->
hostui
);
if
(
This
->
client
)
if
(
This
->
client
)
...
@@ -243,40 +248,43 @@ static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, struct tag
...
@@ -243,40 +248,43 @@ static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, struct tag
switch
(
iVerb
)
switch
(
iVerb
)
{
{
case
OLEIVERB_SHOW
:
case
OLEIVERB_SHOW
:
case
OLEIVERB_INPLACEACTIVATE
:
{
case
OLEIVERB_INPLACEACTIVATE
:
IOleInPlaceSite
*
inplace
;
TRACE
(
"OLEIVERB_INPLACEACTIVATE
\n
"
);
TRACE
(
"OLEIVERB_INPLACEACTIVATE
\n
"
);
if
(
!
pActiveSite
)
if
(
!
pActiveSite
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
hres
=
IOleClientSite_QueryInterface
(
pActiveSite
,
&
IID_IOleInPlaceSite
,
(
void
**
)
&
inplace
);
if
(
This
->
inplace
)
{
IOleInPlaceSite_Release
(
This
->
inplace
);
This
->
inplace
=
NULL
;
}
hres
=
IOleClientSite_QueryInterface
(
pActiveSite
,
&
IID_IOleInPlaceSite
,
(
void
**
)
&
This
->
inplace
);
if
(
FAILED
(
hres
))
{
if
(
FAILED
(
hres
))
{
WARN
(
"Could not get IOleInPlaceSite
\n
"
);
WARN
(
"Could not get IOleInPlaceSite
\n
"
);
return
hres
;
return
hres
;
}
}
hres
=
IOleInPlaceSite_CanInPlaceActivate
(
inplace
);
hres
=
IOleInPlaceSite_CanInPlaceActivate
(
This
->
inplace
);
if
(
hres
!=
S_OK
)
{
if
(
hres
!=
S_OK
)
{
WARN
(
"CanInPlaceActivate returned: %08lx
\n
"
,
hres
);
WARN
(
"CanInPlaceActivate returned: %08lx
\n
"
,
hres
);
IOleInPlaceSite_Release
(
inplace
);
IOleInPlaceSite_Release
(
This
->
inplace
);
return
E_FAIL
;
return
E_FAIL
;
}
}
hres
=
IOleInPlaceSite_GetWindow
(
inplace
,
&
This
->
iphwnd
);
hres
=
IOleInPlaceSite_GetWindow
(
This
->
inplace
,
&
This
->
iphwnd
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
This
->
iphwnd
=
hwndParent
;
This
->
iphwnd
=
hwndParent
;
IOleInPlaceSite_OnInPlaceActivate
(
inplace
);
IOleInPlaceSite_OnInPlaceActivate
(
This
->
inplace
);
IOleInPlaceSite_GetWindowContext
(
inplace
,
&
This
->
frame
,
&
This
->
uiwindow
,
IOleInPlaceSite_GetWindowContext
(
This
->
inplace
,
&
This
->
frame
,
&
This
->
uiwindow
,
&
This
->
pos_rect
,
&
This
->
clip_rect
,
&
This
->
pos_rect
,
&
This
->
clip_rect
,
&
This
->
frameinfo
);
&
This
->
frameinfo
);
if
(
iVerb
==
OLEIVERB_INPLACEACTIVATE
)
if
(
iVerb
==
OLEIVERB_INPLACEACTIVATE
)
IOleInPlaceSite_Release
(
inplace
);
IOleInPlaceSite_Release
(
This
->
inplace
);
SetWindowPos
(
This
->
shell_embedding_hwnd
,
NULL
,
SetWindowPos
(
This
->
shell_embedding_hwnd
,
NULL
,
This
->
pos_rect
.
left
,
This
->
pos_rect
.
top
,
This
->
pos_rect
.
left
,
This
->
pos_rect
.
top
,
...
@@ -297,8 +305,8 @@ static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, struct tag
...
@@ -297,8 +305,8 @@ static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, struct tag
TRACE
(
"OLEIVERB_SHOW
\n
"
);
TRACE
(
"OLEIVERB_SHOW
\n
"
);
IOleInPlaceSite_OnUIActivate
(
inplace
);
IOleInPlaceSite_OnUIActivate
(
This
->
inplace
);
IOleInPlaceSite_Release
(
inplace
);
IOleInPlaceSite_Release
(
This
->
inplace
);
if
(
This
->
frame
)
if
(
This
->
frame
)
IOleInPlaceFrame_SetActiveObject
(
This
->
frame
,
ACTIVEOBJ
(
This
),
wszitem
);
IOleInPlaceFrame_SetActiveObject
(
This
->
frame
,
ACTIVEOBJ
(
This
),
wszitem
);
...
@@ -310,7 +318,6 @@ static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, struct tag
...
@@ -310,7 +318,6 @@ static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, struct tag
*/
*/
return
S_OK
;
return
S_OK
;
}
default:
default:
FIXME
(
"stub for %ld
\n
"
,
iVerb
);
FIXME
(
"stub for %ld
\n
"
,
iVerb
);
break
;
break
;
...
@@ -760,6 +767,7 @@ void WebBrowser_OleObject_Init(WebBrowser *This)
...
@@ -760,6 +767,7 @@ void WebBrowser_OleObject_Init(WebBrowser *This)
This
->
lpWBOleCommandTargetVtbl
=
&
OleCommandTargetVtbl
;
This
->
lpWBOleCommandTargetVtbl
=
&
OleCommandTargetVtbl
;
This
->
client
=
NULL
;
This
->
client
=
NULL
;
This
->
inplace
=
NULL
;
This
->
container
=
NULL
;
This
->
container
=
NULL
;
This
->
iphwnd
=
NULL
;
This
->
iphwnd
=
NULL
;
This
->
frame_hwnd
=
NULL
;
This
->
frame_hwnd
=
NULL
;
...
...
dlls/shdocvw/shdocvw.h
View file @
80dcc8b8
...
@@ -89,6 +89,7 @@ typedef struct {
...
@@ -89,6 +89,7 @@ typedef struct {
IOleContainer
*
container
;
IOleContainer
*
container
;
IOleDocumentView
*
view
;
IOleDocumentView
*
view
;
IDocHostUIHandler
*
hostui
;
IDocHostUIHandler
*
hostui
;
IOleInPlaceSite
*
inplace
;
LPOLESTR
url
;
LPOLESTR
url
;
...
...
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