hhctrl: Use SetRect() instead of open coding it.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-07-11 09:58:38 +02:00 committed by Alexandre Julliard
parent 79a9010ee8
commit d5b0e98ebf
1 changed files with 1 additions and 4 deletions

View File

@ -412,10 +412,7 @@ static void SB_GetSizeBarRect(HHInfo *info, RECT *rc)
GetClientRect(info->WinType.hwndToolBar, &rectTB);
GetClientRect(info->WinType.hwndNavigation, &rectNP);
rc->left = rectNP.right;
rc->top = rectTB.bottom;
rc->bottom = rectWND.bottom - rectTB.bottom;
rc->right = SIZEBAR_WIDTH;
SetRect(rc, rectNP.right, rectTB.bottom, SIZEBAR_WIDTH, rectWND.bottom - rectTB.bottom);
}
static BOOL HH_AddSizeBar(HHInfo *pHHInfo)