Commit 82bf2556 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Fix window size in IOleDocumentView::SetRect implementation.

parent ab5d9e43
......@@ -502,8 +502,8 @@ static HRESULT WINAPI OleDocumentView_SetRect(IOleDocumentView *iface, LPRECT pr
GetClientRect(This->hwnd, &rect);
if(!EqualRect(prcView, &rect)) {
InvalidateRect(This->hwnd, NULL, TRUE);
SetWindowPos(This->hwnd, NULL, prcView->left, prcView->top, prcView->right,
prcView->bottom, SWP_NOZORDER | SWP_NOACTIVATE);
SetWindowPos(This->hwnd, NULL, prcView->left, prcView->top, prcView->right - prcView->left,
prcView->bottom - prcView->top, SWP_NOZORDER | SWP_NOACTIVATE);
}
}
......
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