static HRESULT WINAPI WebBrowser_put_Height(IWebBrowser2 *iface, LONG Height) { WebBrowser *This = WEBBROWSER_THIS(iface); RECT rect; TRACE("(%p)->(%d)\n", This, Height); if(!This->inplace) return E_UNEXPECTED; rect = This->pos_rect; rect.bottom = rect.top+Height; /* We don't really change the window size here. * We just notify the embedder that he should do so. */ return IOleInPlaceSite_OnPosRectChange(This->inplace, &rect); }
static HRESULT WINAPI WebBrowser_put_Top(IWebBrowser2 *iface, LONG Top) { WebBrowser *This = impl_from_IWebBrowser2(iface); RECT rect; TRACE("(%p)->(%d)\n", This, Top); if(!This->inplace) return E_UNEXPECTED; rect = This->pos_rect; rect.top = Top; /* We don't really change the window position here. * We just notify the embedder that he should do so. */ return IOleInPlaceSite_OnPosRectChange(This->inplace, &rect); }
static HRESULT WINAPI WebBrowser_put_Width(IWebBrowser2 *iface, LONG Width) { WebBrowser *This = impl_from_IWebBrowser2(iface); RECT rect; TRACE("(%p)->(%d)\n", This, Width); if(!This->inplace) return E_UNEXPECTED; rect = This->pos_rect; rect.right = rect.left+Width; /* We don't really change the window size here. * We just notify the embedder that he should do so. */ return IOleInPlaceSite_OnPosRectChange(This->inplace, &rect); }
static HRESULT WINAPI WebBrowser_put_Width(IWebBrowser2 *iface, long Width) { WebBrowser *This = WEBBROWSER_THIS(iface); RECT rect; TRACE("(%p)->(%ld)\n", This, Width); if(!This->inplace) return E_UNEXPECTED; memcpy(&rect, &This->pos_rect, sizeof(RECT)); rect.right = rect.left+Width; /* We don't really change the window size here. * We just notify the embedder that he should do so. */ return IOleInPlaceSite_OnPosRectChange(This->inplace, &rect); }