mshtml: Call Exec(CGID_ShellDocView, 37) in exec_editmode.

This commit is contained in:
Jacek Caban 2007-06-11 17:24:54 +02:00 committed by Alexandre Julliard
parent 78bdd9ba94
commit 5766b55e40
1 changed files with 16 additions and 0 deletions

View File

@ -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;