Jacek Caban : mshtml: Call Exec(CGID_ShellDocView, 37) in exec_editmode.
Module: wine Branch: master Commit: 5766b55e40727b6c0538c91f1f900d0d1859a5cb URL: http://source.winehq.org/git/wine.git/?a=commit;h=5766b55e40727b6c0538c91f1f... Author: Jacek Caban <jacek(a)codeweavers.com> Date: Mon Jun 11 17:24:54 2007 +0200 mshtml: Call Exec(CGID_ShellDocView, 37) in exec_editmode. --- dlls/mshtml/olecmd.c | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/dlls/mshtml/olecmd.c b/dlls/mshtml/olecmd.c index 288a12b..c481e6a 100644 --- a/dlls/mshtml/olecmd.c +++ b/dlls/mshtml/olecmd.c @@ -546,6 +546,22 @@ static HRESULT exec_editmode(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, if(This->frame) IOleInPlaceFrame_SetStatusText(This->frame, NULL); + if(This->client) { + IOleCommandTarget *cmdtrg; + + hres = IOleClientSite_QueryInterface(This->client, &IID_IOleCommandTarget, + (void**)&cmdtrg); + if(SUCCEEDED(hres)) { + VARIANT var; + + V_VT(&var) = VT_I4; + V_I4(&var) = 0; + IOleCommandTarget_Exec(cmdtrg, &CGID_ShellDocView, 37, 0, &var, NULL); + + IOleCommandTarget_Release(cmdtrg); + } + } + if(This->hostui) { DOCHOSTUIINFO hostinfo;
participants (1)
-
Alexandre Julliard