[PATCH 2/5] mshtml: Pass the correct DOCHOSTUITYPE value to
IDocHostUIHandler_ShowUI.
Robert Shearman
rob at codeweavers.com
Tue Jul 24 17:06:47 CDT 2007
Don't reset window_active in OleDocumentView_UIActivate.
---
dlls/mshtml/view.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
-------------- next part --------------
diff --git a/dlls/mshtml/view.c b/dlls/mshtml/view.c
index c79da80..a201de0 100644
--- a/dlls/mshtml/view.c
+++ b/dlls/mshtml/view.c
@@ -596,8 +596,9 @@ static HRESULT WINAPI OleDocumentView_UI
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_UI
This->ui_active = TRUE;
}else {
- This->window_active = FALSE;
if(This->ui_active) {
This->ui_active = FALSE;
if(This->ip_window)
More information about the wine-patches
mailing list