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
7bbae51c
Commit
7bbae51c
authored
Nov 05, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Added OnAmbientPropertyChange(DISPID_AMBIENT_SILENT) implementation.
parent
ebbcd53c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
1 deletion
+49
-1
oleobject.c
dlls/shdocvw/oleobject.c
+49
-1
No files found.
dlls/shdocvw/oleobject.c
View file @
7bbae51c
...
...
@@ -27,6 +27,7 @@
#include "wine/debug.h"
#include "shdocvw.h"
#include "htiframe.h"
#include "idispids.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
shdocvw
);
...
...
@@ -186,6 +187,45 @@ static HRESULT activate_ui(WebBrowser *This, IOleClientSite *active_site)
return
S_OK
;
}
static
HRESULT
get_client_disp_property
(
IOleClientSite
*
client
,
DISPID
dispid
,
VARIANT
*
res
)
{
IDispatch
*
disp
=
NULL
;
DISPPARAMS
dispparams
=
{
NULL
,
0
};
HRESULT
hres
;
VariantInit
(
res
);
if
(
!
client
)
return
S_OK
;
hres
=
IOleClientSite_QueryInterface
(
client
,
&
IID_IDispatch
,
(
void
**
)
&
disp
);
if
(
FAILED
(
hres
))
{
TRACE
(
"Could not get IDispatch
\n
"
);
return
hres
;
}
hres
=
IDispatch_Invoke
(
disp
,
dispid
,
&
IID_NULL
,
LOCALE_SYSTEM_DEFAULT
,
DISPATCH_PROPERTYGET
,
&
dispparams
,
res
,
NULL
,
NULL
);
IDispatch_Release
(
disp
);
return
hres
;
}
static
HRESULT
on_silent_change
(
WebBrowser
*
This
)
{
VARIANT
silent
;
get_client_disp_property
(
This
->
client
,
DISPID_AMBIENT_SILENT
,
&
silent
);
if
(
V_VT
(
&
silent
)
==
VT_BOOL
)
IWebBrowser2_put_Silent
(
WEBBROWSER2
(
This
),
V_BOOL
(
&
silent
));
else
if
(
V_VT
(
&
silent
)
!=
VT_EMPTY
)
WARN
(
"wrong V_VT(silent) %d
\n
"
,
V_VT
(
&
silent
));
return
S_OK
;
}
/**********************************************************************
* Implement the IOleObject interface for the WebBrowser control
*/
...
...
@@ -639,7 +679,15 @@ static HRESULT WINAPI OleControl_OnMnemonic(IOleControl *iface, struct tagMSG *p
static
HRESULT
WINAPI
OleControl_OnAmbientPropertyChange
(
IOleControl
*
iface
,
DISPID
dispID
)
{
WebBrowser
*
This
=
CONTROL_THIS
(
iface
);
FIXME
(
"(%p)->(%d)
\n
"
,
This
,
dispID
);
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
dispID
);
switch
(
dispID
)
{
case
DISPID_AMBIENT_SILENT
:
return
on_silent_change
(
This
);
}
FIXME
(
"Unknown dispID %d
\n
"
,
dispID
);
return
E_NOTIMPL
;
}
...
...
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