diff --git a/dlls/shdocvw/dochost.c b/dlls/shdocvw/dochost.c index 01f7a881548..2a679e7a93c 100644 --- a/dlls/shdocvw/dochost.c +++ b/dlls/shdocvw/dochost.c @@ -146,7 +146,7 @@ void create_doc_view_hwnd(WebBrowser *This) doc_view_atom = RegisterClassExW(&wndclass); } - GetWindowRect(This->shell_embedding_hwnd, &rect); + GetClientRect(This->shell_embedding_hwnd, &rect); This->doc_view_hwnd = CreateWindowExW(0, wszShell_DocObject_View, wszShell_DocObject_View, WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_TABSTOP | WS_MAXIMIZEBOX,