ieframe: Use InflateRect() instead of open coding it.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-07-09 13:52:20 +02:00 committed by Alexandre Julliard
parent 6eef44ed9a
commit 79a9010ee8
1 changed files with 1 additions and 2 deletions

View File

@ -73,8 +73,7 @@ static void adjust_ie_docobj_rect(HWND frame, RECT* rc)
HWND hwndStatus = GetDlgItem(frame, IDC_BROWSE_STATUSBAR);
INT barHeight = SendMessageW(hwndRebar, RB_GETBARHEIGHT, 0, 0);
rc->top += barHeight;
rc->bottom -= barHeight;
InflateRect(rc, 0, -barHeight);
if(IsWindowVisible(hwndStatus))
{