From ca835d0a368feaf7ee93ccbcf4765d77a34d232c Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Sun, 6 Feb 2011 22:15:57 +0100 Subject: [PATCH] mshtml: Added IHTMLWindow2::focus implementation. --- dlls/mshtml/htmlwindow.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c index 3cbffea193..d0d378f5ec 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)