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
22b6d548
Commit
22b6d548
authored
Apr 18, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Use Dochost, not WebBrowser, in deactivate_document.
parent
6470c5ca
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
18 deletions
+18
-18
dochost.c
dlls/shdocvw/dochost.c
+15
-15
navigate.c
dlls/shdocvw/navigate.c
+1
-1
oleobject.c
dlls/shdocvw/oleobject.c
+1
-1
shdocvw.h
dlls/shdocvw/shdocvw.h
+1
-1
No files found.
dlls/shdocvw/dochost.c
View file @
22b6d548
...
...
@@ -154,36 +154,36 @@ void create_doc_view_hwnd(WebBrowser *This)
NULL
,
shdocvw_hinstance
,
This
);
}
void
deactivate_document
(
WebBrowser
*
This
)
void
deactivate_document
(
DocHost
*
This
)
{
IOleInPlaceObjectWindowless
*
winobj
;
IOleObject
*
oleobj
=
NULL
;
IHlinkTarget
*
hlink
=
NULL
;
HRESULT
hres
;
if
(
This
->
doc_host
.
view
)
IOleDocumentView_UIActivate
(
This
->
doc_host
.
view
,
FALSE
);
if
(
This
->
view
)
IOleDocumentView_UIActivate
(
This
->
view
,
FALSE
);
hres
=
IUnknown_QueryInterface
(
This
->
doc
_host
.
doc
ument
,
&
IID_IOleInPlaceObjectWindowless
,
hres
=
IUnknown_QueryInterface
(
This
->
document
,
&
IID_IOleInPlaceObjectWindowless
,
(
void
**
)
&
winobj
);
if
(
SUCCEEDED
(
hres
))
{
IOleInPlaceObjectWindowless_InPlaceDeactivate
(
winobj
);
IOleInPlaceObjectWindowless_Release
(
winobj
);
}
if
(
This
->
doc_host
.
view
)
{
IOleDocumentView_Show
(
This
->
doc_host
.
view
,
FALSE
);
IOleDocumentView_CloseView
(
This
->
doc_host
.
view
,
0
);
IOleDocumentView_SetInPlaceSite
(
This
->
doc_host
.
view
,
NULL
);
IOleDocumentView_Release
(
This
->
doc_host
.
view
);
This
->
doc_host
.
view
=
NULL
;
if
(
This
->
view
)
{
IOleDocumentView_Show
(
This
->
view
,
FALSE
);
IOleDocumentView_CloseView
(
This
->
view
,
0
);
IOleDocumentView_SetInPlaceSite
(
This
->
view
,
NULL
);
IOleDocumentView_Release
(
This
->
view
);
This
->
view
=
NULL
;
}
hres
=
IUnknown_QueryInterface
(
This
->
doc
_host
.
doc
ument
,
&
IID_IOleObject
,
(
void
**
)
&
oleobj
);
hres
=
IUnknown_QueryInterface
(
This
->
document
,
&
IID_IOleObject
,
(
void
**
)
&
oleobj
);
if
(
SUCCEEDED
(
hres
))
IOleObject_Close
(
oleobj
,
OLECLOSE_NOSAVE
);
hres
=
IUnknown_QueryInterface
(
This
->
doc
_host
.
doc
ument
,
&
IID_IHlinkTarget
,
(
void
**
)
&
hlink
);
hres
=
IUnknown_QueryInterface
(
This
->
document
,
&
IID_IHlinkTarget
,
(
void
**
)
&
hlink
);
if
(
SUCCEEDED
(
hres
))
{
IHlinkTarget_SetBrowseContext
(
hlink
,
NULL
);
IHlinkTarget_Release
(
hlink
);
...
...
@@ -194,7 +194,7 @@ void deactivate_document(WebBrowser *This)
IOleObject_GetClientSite
(
oleobj
,
&
client_site
);
if
(
client_site
)
{
if
(
client_site
==
CLIENTSITE
(
&
This
->
doc_host
))
if
(
client_site
==
CLIENTSITE
(
This
))
IOleObject_SetClientSite
(
oleobj
,
NULL
);
IOleClientSite_Release
(
client_site
);
}
...
...
@@ -202,8 +202,8 @@ void deactivate_document(WebBrowser *This)
IOleObject_Release
(
oleobj
);
}
IUnknown_Release
(
This
->
doc
_host
.
doc
ument
);
This
->
doc
_host
.
doc
ument
=
NULL
;
IUnknown_Release
(
This
->
document
);
This
->
document
=
NULL
;
}
#define OLECMD_THIS(iface) DEFINE_THIS(DocHost, OleCommandTarget, iface)
...
...
dlls/shdocvw/navigate.c
View file @
22b6d548
...
...
@@ -401,7 +401,7 @@ static HRESULT navigate(WebBrowser *This, IMoniker *mon, IBindCtx *bindctx,
*/
if
(
This
->
doc_host
.
document
)
deactivate_document
(
This
);
deactivate_document
(
&
This
->
doc_host
);
hres
=
CoCreateInstance
(
&
CLSID_HTMLDocument
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
...
...
dlls/shdocvw/oleobject.c
View file @
22b6d548
...
...
@@ -154,7 +154,7 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, LPOLECLIENTSITE
if
(
!
pClientSite
)
{
if
(
This
->
doc_host
.
document
)
deactivate_document
(
This
);
deactivate_document
(
&
This
->
doc_host
);
This
->
client
=
NULL
;
return
S_OK
;
}
...
...
dlls/shdocvw/shdocvw.h
View file @
22b6d548
...
...
@@ -165,7 +165,7 @@ void WebBrowser_ClientSite_Destroy(WebBrowser*);
HRESULT
WebBrowser_Create
(
IUnknown
*
,
REFIID
,
void
**
);
void
create_doc_view_hwnd
(
WebBrowser
*
This
);
void
deactivate_document
(
WebBrowser
*
);
void
deactivate_document
(
DocHost
*
);
void
call_sink
(
ConnectionPoint
*
,
DISPID
,
DISPPARAMS
*
);
HRESULT
navigate_url
(
WebBrowser
*
,
LPCWSTR
,
PBYTE
,
ULONG
,
LPWSTR
);
...
...
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