mshtml: Return rect relative to parent window in IOleDocumentView::GetRect.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2019-05-21 16:36:10 +02:00 committed by Alexandre Julliard
parent 82bf2556dc
commit d9693be2a5
1 changed files with 1 additions and 0 deletions

View File

@ -520,6 +520,7 @@ static HRESULT WINAPI OleDocumentView_GetRect(IOleDocumentView *iface, LPRECT pr
return E_INVALIDARG;
GetClientRect(This->hwnd, prcView);
MapWindowPoints(This->hwnd, GetParent(This->hwnd), (POINT*)prcView, 2);
return S_OK;
}