Jacek Caban : mshtml: Added screenLeft and screenTop properties implementation.
Module: wine Branch: master Commit: df63590706b0bcd4c114bd551491e25b65866f36 URL: http://source.winehq.org/git/wine.git/?a=commit;h=df63590706b0bcd4c114bd5514... Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Dec 23 21:12:43 2014 +0100 mshtml: Added screenLeft and screenTop properties implementation. --- dlls/mshtml/htmlwindow.c | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c index 82bb374..a18fc6d 100644 --- a/dlls/mshtml/htmlwindow.c +++ b/dlls/mshtml/htmlwindow.c @@ -1594,15 +1594,33 @@ static HRESULT WINAPI HTMLWindow3_Invoke(IHTMLWindow3 *iface, DISPID dispIdMembe static HRESULT WINAPI HTMLWindow3_get_screenLeft(IHTMLWindow3 *iface, LONG *p) { HTMLWindow *This = impl_from_IHTMLWindow3(iface); - FIXME("(%p)->(%p)\n", This, p); - return E_NOTIMPL; + nsresult nsres; + + TRACE("(%p)->(%p)\n", This, p); + + nsres = nsIDOMWindow_GetScreenX(This->outer_window->nswindow, p); + if(NS_FAILED(nsres)) { + ERR("GetScreenX failed: %08x\n", nsres); + return E_FAIL; + } + + return S_OK; } static HRESULT WINAPI HTMLWindow3_get_screenTop(IHTMLWindow3 *iface, LONG *p) { HTMLWindow *This = impl_from_IHTMLWindow3(iface); - FIXME("(%p)->(%p)\n", This, p); - return E_NOTIMPL; + nsresult nsres; + + TRACE("(%p)->(%p)\n", This, p); + + nsres = nsIDOMWindow_GetScreenY(This->outer_window->nswindow, p); + if(NS_FAILED(nsres)) { + ERR("GetScreenY failed: %08x\n", nsres); + return E_FAIL; + } + + return S_OK; } static HRESULT WINAPI HTMLWindow3_attachEvent(IHTMLWindow3 *iface, BSTR event, IDispatch *pDisp, VARIANT_BOOL *pfResult)
participants (1)
-
Alexandre Julliard