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