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
dda3bea5
Commit
dda3bea5
authored
May 23, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
May 23, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Move UI activating to the separated function.
parent
864bfd8e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
23 deletions
+27
-23
oleobject.c
dlls/shdocvw/oleobject.c
+27
-23
No files found.
dlls/shdocvw/oleobject.c
View file @
dda3bea5
...
@@ -152,6 +152,30 @@ static HRESULT activate_inplace(WebBrowser *This, IOleClientSite *active_site, H
...
@@ -152,6 +152,30 @@ static HRESULT activate_inplace(WebBrowser *This, IOleClientSite *active_site, H
return
S_OK
;
return
S_OK
;
}
}
static
HRESULT
activate_ui
(
WebBrowser
*
This
,
IOleClientSite
*
active_site
,
HWND
parent_hwnd
)
{
HRESULT
hres
;
static
const
WCHAR
wszitem
[]
=
{
'i'
,
't'
,
'e'
,
'm'
,
0
};
hres
=
activate_inplace
(
This
,
active_site
,
parent_hwnd
);
if
(
FAILED
(
hres
))
return
hres
;
IOleInPlaceSite_OnUIActivate
(
This
->
inplace
);
if
(
This
->
frame
)
IOleInPlaceFrame_SetActiveObject
(
This
->
frame
,
ACTIVEOBJ
(
This
),
wszitem
);
if
(
This
->
uiwindow
)
IOleInPlaceUIWindow_SetActiveObject
(
This
->
uiwindow
,
ACTIVEOBJ
(
This
),
wszitem
);
/* TODO:
* IOleInPlaceFrmae_SetMenu
*/
return
S_OK
;
}
/**********************************************************************
/**********************************************************************
* Implement the IOleObject interface for the WebBrowser control
* Implement the IOleObject interface for the WebBrowser control
*/
*/
...
@@ -291,38 +315,18 @@ static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, struct tag
...
@@ -291,38 +315,18 @@ static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, struct tag
LPOLECLIENTSITE
pActiveSite
,
LONG
lindex
,
HWND
hwndParent
,
LPCRECT
lprcPosRect
)
LPOLECLIENTSITE
pActiveSite
,
LONG
lindex
,
HWND
hwndParent
,
LPCRECT
lprcPosRect
)
{
{
WebBrowser
*
This
=
OLEOBJ_THIS
(
iface
);
WebBrowser
*
This
=
OLEOBJ_THIS
(
iface
);
HRESULT
hres
;
static
const
WCHAR
wszitem
[]
=
{
'i'
,
't'
,
'e'
,
'm'
,
0
};
TRACE
(
"(%p)->(%ld %p %p %ld %p %p)
\n
"
,
This
,
iVerb
,
lpmsg
,
pActiveSite
,
lindex
,
hwndParent
,
TRACE
(
"(%p)->(%ld %p %p %ld %p %p)
\n
"
,
This
,
iVerb
,
lpmsg
,
pActiveSite
,
lindex
,
hwndParent
,
lprcPosRect
);
lprcPosRect
);
switch
(
iVerb
)
switch
(
iVerb
)
{
{
case
OLEIVERB_SHOW
:
TRACE
(
"OLEIVERB_SHOW
\n
"
);
return
activate_ui
(
This
,
pActiveSite
,
hwndParent
);
case
OLEIVERB_INPLACEACTIVATE
:
case
OLEIVERB_INPLACEACTIVATE
:
TRACE
(
"OLEIVERB_INPLACEACTIVATE
\n
"
);
TRACE
(
"OLEIVERB_INPLACEACTIVATE
\n
"
);
return
activate_inplace
(
This
,
pActiveSite
,
hwndParent
);
return
activate_inplace
(
This
,
pActiveSite
,
hwndParent
);
case
OLEIVERB_SHOW
:
TRACE
(
"OLEIVERB_SHOW
\n
"
);
hres
=
activate_inplace
(
This
,
pActiveSite
,
hwndParent
);
if
(
FAILED
(
hres
))
return
hres
;
IOleInPlaceSite_OnUIActivate
(
This
->
inplace
);
if
(
This
->
frame
)
IOleInPlaceFrame_SetActiveObject
(
This
->
frame
,
ACTIVEOBJ
(
This
),
wszitem
);
if
(
This
->
uiwindow
)
IOleInPlaceUIWindow_SetActiveObject
(
This
->
uiwindow
,
ACTIVEOBJ
(
This
),
wszitem
);
/* TODO:
* IOleInPlaceFrmae_SetMenu
*/
return
S_OK
;
default:
default:
FIXME
(
"stub for %ld
\n
"
,
iVerb
);
FIXME
(
"stub for %ld
\n
"
,
iVerb
);
break
;
break
;
...
...
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