Commit db850cd7 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent 0f12fa1e
...@@ -314,9 +314,7 @@ static void update_layout(ExplorerBrowserImpl *This) ...@@ -314,9 +314,7 @@ static void update_layout(ExplorerBrowserImpl *This)
if(navpane_width_actual) if(navpane_width_actual)
{ {
This->navpane.rc.left = This->navpane.rc.top = 0; SetRect(&This->navpane.rc, 0, 0, navpane_width_actual, rc.bottom);
This->navpane.rc.right = navpane_width_actual;
This->navpane.rc.bottom = rc.bottom;
if(!This->navpane.hwnd_splitter) if(!This->navpane.hwnd_splitter)
initialize_navpane(This, This->hwnd_main, &This->navpane.rc); initialize_navpane(This, This->hwnd_main, &This->navpane.rc);
...@@ -324,10 +322,8 @@ static void update_layout(ExplorerBrowserImpl *This) ...@@ -324,10 +322,8 @@ static void update_layout(ExplorerBrowserImpl *This)
else else
ZeroMemory(&This->navpane.rc, sizeof(RECT)); ZeroMemory(&This->navpane.rc, sizeof(RECT));
This->sv_rc.left = navpane_width_actual; SetRect(&This->sv_rc, navpane_width_actual, 0, navpane_width_actual + shellview_width_actual,
This->sv_rc.top = 0; rc.bottom);
This->sv_rc.right = This->sv_rc.left + shellview_width_actual;
This->sv_rc.bottom = rc.bottom;
} }
static void size_panes(ExplorerBrowserImpl *This) static void size_panes(ExplorerBrowserImpl *This)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment