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
dc15020c
Commit
dc15020c
authored
Mar 09, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Move frame variable to DocHost.
parent
3febaa2d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
dochost.c
dlls/shdocvw/dochost.c
+3
-0
oleobject.c
dlls/shdocvw/oleobject.c
+7
-10
shdocvw.h
dlls/shdocvw/shdocvw.h
+1
-1
No files found.
dlls/shdocvw/dochost.c
View file @
dc15020c
...
...
@@ -490,6 +490,7 @@ void DocHost_Init(DocHost *This, IDispatch *disp)
This
->
document
=
NULL
;
This
->
hostui
=
NULL
;
This
->
frame
=
NULL
;
This
->
hwnd
=
NULL
;
This
->
frame_hwnd
=
NULL
;
...
...
@@ -508,6 +509,8 @@ void DocHost_Release(DocHost *This)
{
if
(
This
->
client_disp
)
IDispatch_Release
(
This
->
client_disp
);
if
(
This
->
frame
)
IOleInPlaceFrame_Release
(
This
->
frame
);
DocHost_ClientSite_Release
(
This
);
...
...
dlls/shdocvw/oleobject.c
View file @
dc15020c
...
...
@@ -138,7 +138,7 @@ static HRESULT activate_inplace(WebBrowser *This, IOleClientSite *active_site)
IOleInPlaceSite_OnInPlaceActivate
(
This
->
inplace
);
IOleInPlaceSite_GetWindowContext
(
This
->
inplace
,
&
This
->
frame
,
&
This
->
uiwindow
,
IOleInPlaceSite_GetWindowContext
(
This
->
inplace
,
&
This
->
doc_host
.
frame
,
&
This
->
uiwindow
,
&
This
->
pos_rect
,
&
This
->
clip_rect
,
&
This
->
frameinfo
);
...
...
@@ -153,8 +153,8 @@ static HRESULT activate_inplace(WebBrowser *This, IOleClientSite *active_site)
IOleClientSite_GetContainer
(
This
->
client
,
&
This
->
container
);
}
if
(
This
->
frame
)
IOleInPlaceFrame_GetWindow
(
This
->
frame
,
&
This
->
frame_hwnd
);
if
(
This
->
doc_host
.
frame
)
IOleInPlaceFrame_GetWindow
(
This
->
doc_host
.
frame
,
&
This
->
frame_hwnd
);
return
S_OK
;
}
...
...
@@ -174,13 +174,13 @@ static HRESULT activate_ui(WebBrowser *This, IOleClientSite *active_site)
IOleInPlaceSite_OnUIActivate
(
This
->
inplace
);
if
(
This
->
frame
)
IOleInPlaceFrame_SetActiveObject
(
This
->
frame
,
ACTIVEOBJ
(
This
),
wszitem
);
if
(
This
->
doc_host
.
frame
)
IOleInPlaceFrame_SetActiveObject
(
This
->
doc_host
.
frame
,
ACTIVEOBJ
(
This
),
wszitem
);
if
(
This
->
uiwindow
)
IOleInPlaceUIWindow_SetActiveObject
(
This
->
uiwindow
,
ACTIVEOBJ
(
This
),
wszitem
);
if
(
This
->
frame
)
IOleInPlaceFrame_SetMenu
(
This
->
frame
,
NULL
,
NULL
,
This
->
shell_embedding_hwnd
);
if
(
This
->
doc_host
.
frame
)
IOleInPlaceFrame_SetMenu
(
This
->
doc_host
.
frame
,
NULL
,
NULL
,
This
->
shell_embedding_hwnd
);
SetFocus
(
This
->
shell_embedding_hwnd
);
...
...
@@ -886,7 +886,6 @@ void WebBrowser_OleObject_Init(WebBrowser *This)
This
->
inplace
=
NULL
;
This
->
container
=
NULL
;
This
->
frame_hwnd
=
NULL
;
This
->
frame
=
NULL
;
This
->
uiwindow
=
NULL
;
This
->
shell_embedding_hwnd
=
NULL
;
...
...
@@ -904,8 +903,6 @@ void WebBrowser_OleObject_Destroy(WebBrowser *This)
IOleObject_SetClientSite
(
OLEOBJ
(
This
),
NULL
);
if
(
This
->
container
)
IOleContainer_Release
(
This
->
container
);
if
(
This
->
frame
)
IOleInPlaceFrame_Release
(
This
->
frame
);
if
(
This
->
uiwindow
)
IOleInPlaceUIWindow_Release
(
This
->
uiwindow
);
}
dlls/shdocvw/shdocvw.h
View file @
dc15020c
...
...
@@ -76,6 +76,7 @@ typedef struct {
IDispatch
*
client_disp
;
IDocHostUIHandler
*
hostui
;
IOleInPlaceFrame
*
frame
;
IUnknown
*
document
;
IOleDocumentView
*
view
;
...
...
@@ -117,7 +118,6 @@ struct WebBrowser {
/* window context */
HWND
frame_hwnd
;
IOleInPlaceFrame
*
frame
;
IOleInPlaceUIWindow
*
uiwindow
;
RECT
pos_rect
;
RECT
clip_rect
;
...
...
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