Commit 807c716d authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added nsIEmbeddingSiteWindow::GetDimensions implementation.

parent 0db8da70
......@@ -1712,8 +1712,24 @@ static nsresult NSAPI nsEmbeddingSiteWindow_GetDimensions(nsIEmbeddingSiteWindow
UINT32 flags, LONG *x, LONG *y, LONG *cx, LONG *cy)
{
NSContainer *This = impl_from_nsIEmbeddingSiteWindow(iface);
WARN("(%p)->(%08x %p %p %p %p)\n", This, flags, x, y, cx, cy);
return NS_ERROR_NOT_IMPLEMENTED;
RECT r;
TRACE("(%p)->(%x %p %p %p %p)\n", This, flags, x, y, cx, cy);
if(!GetWindowRect(This->hwnd, &r)) {
ERR("GetWindowRect failed\n");
return NS_ERROR_FAILURE;
}
if(x)
*x = r.left;
if(y)
*y = r.top;
if(cx)
*cx = r.right-r.left;
if(cy)
*cy = r.bottom-r.top;
return NS_OK;
}
static nsresult NSAPI nsEmbeddingSiteWindow_SetFocus(nsIEmbeddingSiteWindow *iface)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment