Rob Shearman : mshtml: Set focus to the Gecko window in OleInPlaceActiveObject_OnFrameWindowActivate .

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jul 25 07:44:13 CDT 2007


Module: wine
Branch: master
Commit: fbdc76aaf7a1ff6693a0837f7c294cc3de0cb26f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fbdc76aaf7a1ff6693a0837f7c294cc3de0cb26f

Author: Rob Shearman <rob at codeweavers.com>
Date:   Tue Jul 24 17:07:05 2007 -0500

mshtml: Set focus to the Gecko window in OleInPlaceActiveObject_OnFrameWindowActivate.

---

 dlls/mshtml/olewnd.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/mshtml/olewnd.c b/dlls/mshtml/olewnd.c
index 5ce3209..613f71d 100644
--- a/dlls/mshtml/olewnd.c
+++ b/dlls/mshtml/olewnd.c
@@ -101,6 +101,9 @@ static HRESULT WINAPI OleInPlaceActiveObject_OnFrameWindowActivate(IOleInPlaceAc
     if(This->hostui)
         IDocHostUIHandler_OnFrameWindowActivate(This->hostui, fActivate);
 
+    if(fActivate && This->nscontainer)
+        nsIWebBrowserFocus_Activate(This->nscontainer->focus);
+
     return S_OK;
 }
 




More information about the wine-cvs mailing list