Jacek Caban : mshtml: Added IHTMLWindow2::focus implementation.
Alexandre Julliard
julliard at winehq.org
Mon Feb 7 16:06:39 CST 2011
Module: wine
Branch: master
Commit: ca835d0a368feaf7ee93ccbcf4765d77a34d232c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ca835d0a368feaf7ee93ccbcf4765d77a34d232c
Author: Jacek Caban <jacek at codeweavers.com>
Date: Sun Feb 6 22:15:57 2011 +0100
mshtml: Added IHTMLWindow2::focus implementation.
---
dlls/mshtml/htmlwindow.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c
index 3cbffea..d0d378f 100644
--- a/dlls/mshtml/htmlwindow.c
+++ b/dlls/mshtml/htmlwindow.c
@@ -1074,8 +1074,12 @@ static HRESULT WINAPI HTMLWindow2_get_Option(IHTMLWindow2 *iface, IHTMLOptionEle
static HRESULT WINAPI HTMLWindow2_focus(IHTMLWindow2 *iface)
{
HTMLWindow *This = impl_from_IHTMLWindow2(iface);
- FIXME("(%p)->()\n", This);
- return E_NOTIMPL;
+
+ TRACE("(%p)->()\n", This);
+
+ if(This->doc_obj)
+ SetFocus(This->doc_obj->hwnd);
+ return S_OK;
}
static HRESULT WINAPI HTMLWindow2_get_closed(IHTMLWindow2 *iface, VARIANT_BOOL *p)
More information about the wine-cvs
mailing list