Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
7bbae51c
Commit
7bbae51c
authored
18 years ago
by
Jacek Caban
Committed by
Alexandre Julliard
18 years ago
Browse files
Options
Downloads
Patches
Plain Diff
shdocvw: Added OnAmbientPropertyChange(DISPID_AMBIENT_SILENT) implementation.
parent
ebbcd53c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/shdocvw/oleobject.c
+49
-1
49 additions, 1 deletion
dlls/shdocvw/oleobject.c
with
49 additions
and
1 deletion
dlls/shdocvw/oleobject.c
+
49
−
1
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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment