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

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2018-12-07 21:57:15 +01:00 committed by Alexandre Julliard
parent 0f12fa1e43
commit db850cd758
1 changed files with 3 additions and 7 deletions

View File

@ -314,9 +314,7 @@ static void update_layout(ExplorerBrowserImpl *This)
if(navpane_width_actual)
{
This->navpane.rc.left = This->navpane.rc.top = 0;
This->navpane.rc.right = navpane_width_actual;
This->navpane.rc.bottom = rc.bottom;
SetRect(&This->navpane.rc, 0, 0, navpane_width_actual, rc.bottom);
if(!This->navpane.hwnd_splitter)
initialize_navpane(This, This->hwnd_main, &This->navpane.rc);
@ -324,10 +322,8 @@ static void update_layout(ExplorerBrowserImpl *This)
else
ZeroMemory(&This->navpane.rc, sizeof(RECT));
This->sv_rc.left = navpane_width_actual;
This->sv_rc.top = 0;
This->sv_rc.right = This->sv_rc.left + shellview_width_actual;
This->sv_rc.bottom = rc.bottom;
SetRect(&This->sv_rc, navpane_width_actual, 0, navpane_width_actual + shellview_width_actual,
rc.bottom);
}
static void size_panes(ExplorerBrowserImpl *This)