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
cf0c9113
Commit
cf0c9113
authored
Jun 14, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use IOleInPlaceSiteEx if available.
parent
dd88237d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
3 deletions
+24
-3
olewnd.c
dlls/mshtml/olewnd.c
+12
-2
view.c
dlls/mshtml/view.c
+12
-1
No files found.
dlls/mshtml/olewnd.c
View file @
cf0c9113
...
@@ -202,8 +202,18 @@ static HRESULT WINAPI OleInPlaceObjectWindowless_InPlaceDeactivate(IOleInPlaceOb
...
@@ -202,8 +202,18 @@ static HRESULT WINAPI OleInPlaceObjectWindowless_InPlaceDeactivate(IOleInPlaceOb
}
}
This
->
in_place_active
=
FALSE
;
This
->
in_place_active
=
FALSE
;
if
(
This
->
ipsite
)
if
(
This
->
ipsite
)
{
IOleInPlaceSite_OnInPlaceDeactivate
(
This
->
ipsite
);
IOleInPlaceSiteEx
*
ipsiteex
;
HRESULT
hres
;
hres
=
IOleInPlaceSite_QueryInterface
(
This
->
ipsite
,
&
IID_IOleInPlaceSiteEx
,
(
void
**
)
&
ipsiteex
);
if
(
SUCCEEDED
(
hres
))
{
IOleInPlaceSiteEx_OnInPlaceDeactivateEx
(
ipsiteex
,
TRUE
);
IOleInPlaceSiteEx_Release
(
ipsiteex
);
}
else
{
IOleInPlaceSite_OnInPlaceDeactivate
(
This
->
ipsite
);
}
}
return
S_OK
;
return
S_OK
;
}
}
...
...
dlls/mshtml/view.c
View file @
cf0c9113
...
@@ -227,6 +227,7 @@ static HRESULT activate_window(HTMLDocument *This)
...
@@ -227,6 +227,7 @@ static HRESULT activate_window(HTMLDocument *This)
IOleInPlaceUIWindow
*
pIPWnd
;
IOleInPlaceUIWindow
*
pIPWnd
;
IOleInPlaceFrame
*
pIPFrame
;
IOleInPlaceFrame
*
pIPFrame
;
IOleCommandTarget
*
cmdtrg
;
IOleCommandTarget
*
cmdtrg
;
IOleInPlaceSiteEx
*
ipsiteex
;
RECT
posrect
,
cliprect
;
RECT
posrect
,
cliprect
;
OLEINPLACEFRAMEINFO
frameinfo
;
OLEINPLACEFRAMEINFO
frameinfo
;
HWND
parent_hwnd
;
HWND
parent_hwnd
;
...
@@ -289,7 +290,17 @@ static HRESULT activate_window(HTMLDocument *This)
...
@@ -289,7 +290,17 @@ static HRESULT activate_window(HTMLDocument *This)
}
}
This
->
in_place_active
=
TRUE
;
This
->
in_place_active
=
TRUE
;
hres
=
IOleInPlaceSite_OnInPlaceActivate
(
This
->
ipsite
);
hres
=
IOleInPlaceSite_QueryInterface
(
This
->
ipsite
,
&
IID_IOleInPlaceSiteEx
,
(
void
**
)
&
ipsiteex
);
if
(
SUCCEEDED
(
hres
))
{
BOOL
redraw
=
FALSE
;
hres
=
IOleInPlaceSiteEx_OnInPlaceActivateEx
(
ipsiteex
,
&
redraw
,
0
);
IOleInPlaceSiteEx_Release
(
ipsiteex
);
if
(
redraw
)
FIXME
(
"unsupported redraw
\n
"
);
}
else
{
hres
=
IOleInPlaceSite_OnInPlaceActivate
(
This
->
ipsite
);
}
if
(
FAILED
(
hres
))
{
if
(
FAILED
(
hres
))
{
WARN
(
"OnInPlaceActivate failed: %08x
\n
"
,
hres
);
WARN
(
"OnInPlaceActivate failed: %08x
\n
"
,
hres
);
This
->
in_place_active
=
FALSE
;
This
->
in_place_active
=
FALSE
;
...
...
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