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:
parent
6eef44ed9a
commit
79a9010ee8
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue