Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3f444cae
Commit
3f444cae
authored
Nov 20, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Move IOleInPlaceFrame::SetActiveObject call to separated function.
parent
22ac3704
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
view.c
dlls/mshtml/view.c
+16
-8
No files found.
dlls/mshtml/mshtml_private.h
View file @
3f444cae
...
...
@@ -398,6 +398,7 @@ BOOL install_wine_gecko(BOOL);
void
hlink_frame_navigate
(
HTMLDocument
*
,
IHlinkFrame
*
,
LPCWSTR
,
nsIInputStream
*
,
DWORD
);
void
call_property_onchanged
(
ConnectionPoint
*
,
DISPID
);
HRESULT
call_set_active_object
(
IOleInPlaceUIWindow
*
,
IOleInPlaceActiveObject
*
);
void
*
nsalloc
(
size_t
);
void
nsfree
(
void
*
);
...
...
dlls/mshtml/view.c
View file @
3f444cae
...
...
@@ -415,6 +415,18 @@ void hide_tooltip(HTMLDocument *This)
SendMessageW
(
This
->
tooltips_hwnd
,
TTM_ACTIVATE
,
FALSE
,
0
);
}
HRESULT
call_set_active_object
(
IOleInPlaceUIWindow
*
window
,
IOleInPlaceActiveObject
*
act_obj
)
{
static
WCHAR
html_documentW
[
30
];
if
(
act_obj
&&
!
html_documentW
[
0
])
{
LoadStringW
(
hInst
,
IDS_HTMLDOCUMENT
,
html_documentW
,
sizeof
(
html_documentW
)
/
sizeof
(
WCHAR
));
}
return
IOleInPlaceFrame_SetActiveObject
(
window
,
act_obj
,
act_obj
?
html_documentW
:
NULL
);
}
/**********************************************************
* IOleDocumentView implementation
*/
...
...
@@ -564,7 +576,6 @@ static HRESULT WINAPI OleDocumentView_UIActivate(IOleDocumentView *iface, BOOL f
}
if
(
fUIActivate
)
{
OLECHAR
wszHTMLDocument
[
30
];
RECT
rcBorderWidths
;
if
(
This
->
ui_active
)
...
...
@@ -583,12 +594,9 @@ static HRESULT WINAPI OleDocumentView_UIActivate(IOleDocumentView *iface, BOOL f
update_doc
(
This
,
UPDATE_UI
);
LoadStringW
(
hInst
,
IDS_HTMLDOCUMENT
,
wszHTMLDocument
,
sizeof
(
wszHTMLDocument
)
/
sizeof
(
WCHAR
));
hres
=
IOleInPlaceSite_OnUIActivate
(
This
->
ipsite
);
if
(
SUCCEEDED
(
hres
))
{
IOleInPlaceFrame_SetActiveObject
(
This
->
frame
,
ACTOBJ
(
This
),
wszHTMLDocument
);
call_set_active_object
((
IOleInPlaceUIWindow
*
)
This
->
frame
,
ACTOBJ
(
This
)
);
}
else
{
FIXME
(
"OnUIActivate failed: %08x
\n
"
,
hres
);
IOleInPlaceFrame_Release
(
This
->
frame
);
...
...
@@ -604,7 +612,7 @@ static HRESULT WINAPI OleDocumentView_UIActivate(IOleDocumentView *iface, BOOL f
IDocHostUIHandler_HideUI
(
This
->
hostui
);
if
(
This
->
ip_window
)
IOleInPlaceUIWindow_SetActiveObject
(
This
->
ip_window
,
ACTOBJ
(
This
),
wszHTMLDocument
);
call_set_active_object
(
This
->
ip_window
,
ACTOBJ
(
This
)
);
memset
(
&
rcBorderWidths
,
0
,
sizeof
(
rcBorderWidths
));
IOleInPlaceFrame_SetBorderSpace
(
This
->
frame
,
&
rcBorderWidths
);
...
...
@@ -614,9 +622,9 @@ static HRESULT WINAPI OleDocumentView_UIActivate(IOleDocumentView *iface, BOOL f
if
(
This
->
ui_active
)
{
This
->
ui_active
=
FALSE
;
if
(
This
->
ip_window
)
IOleInPlaceUIWindow_SetActiveObject
(
This
->
ip_window
,
NULL
,
NULL
);
call_set_active_object
(
This
->
ip_window
,
NULL
);
if
(
This
->
frame
)
IOleInPlaceFrame_SetActiveObject
(
This
->
frame
,
NULL
,
NULL
);
call_set_active_object
((
IOleInPlaceUIWindow
*
)
This
->
frame
,
NULL
);
if
(
This
->
hostui
)
IDocHostUIHandler_HideUI
(
This
->
hostui
);
if
(
This
->
ipsite
)
...
...
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