mshtml: Pass the correct DOCHOSTUITYPE value to IDocHostUIHandler_ShowUI.

Don't reset window_active in OleDocumentView_UIActivate.
This commit is contained in:
Rob Shearman 2007-07-24 17:06:47 -05:00 committed by Alexandre Julliard
parent 92b3cab791
commit 9a67e1ffe5

View file

@ -596,8 +596,9 @@ static HRESULT WINAPI OleDocumentView_UIActivate(IOleDocumentView *iface, BOOL f
return hres;
}
hres = IDocHostUIHandler_ShowUI(This->hostui, 0, ACTOBJ(This), CMDTARGET(This),
This->frame, This->ip_window);
hres = IDocHostUIHandler_ShowUI(This->hostui,
This->usermode == EDITMODE ? DOCHOSTUITYPE_AUTHOR : DOCHOSTUITYPE_BROWSE,
ACTOBJ(This), CMDTARGET(This), This->frame, This->ip_window);
if(FAILED(hres))
IDocHostUIHandler_HideUI(This->hostui);
@ -609,7 +610,6 @@ static HRESULT WINAPI OleDocumentView_UIActivate(IOleDocumentView *iface, BOOL f
This->ui_active = TRUE;
}else {
This->window_active = FALSE;
if(This->ui_active) {
This->ui_active = FALSE;
if(This->ip_window)