[PATCH 1/2] mshtml: Added IHTMLScreen::get_availHeight implementation

Alexandre Julliard julliard at winehq.org
Fri May 27 07:32:11 CDT 2011


Jacek Caban <jacek at codeweavers.com> writes:

> @@ -186,8 +186,15 @@ static HRESULT WINAPI HTMLScreen_get_updateInterval(IHTMLScreen *iface, LONG *p)
>  static HRESULT WINAPI HTMLScreen_get_availHeight(IHTMLScreen *iface, LONG *p)
>  {
>      HTMLScreen *This = impl_from_IHTMLScreen(iface);
> -    FIXME("(%p)->(%p)\n", This, p);
> -    return E_NOTIMPL;
> +    RECT work_area;
> +
> +    TRACE("(%p)->(%p)\n", This, p);
> +
> +    if(!SystemParametersInfoW(SPI_GETWORKAREA, 0, &work_area, 0))
> +        return E_FAIL;
> +
> +    *p = work_area.bottom;

You probably want work_area.bottom - work_area.top.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list