explorer: Set the rebar band height to match the combobox.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2017-05-02 11:03:18 +01:00 committed by Alexandre Julliard
parent 73170152dc
commit db52c6d074
1 changed files with 6 additions and 8 deletions

View File

@ -301,7 +301,7 @@ static IExplorerBrowserEvents *make_explorer_events(explorer_info *info)
static void make_explorer_window(IShellFolder* startFolder)
{
RECT explorerRect;
RECT rect;
HWND rebar,nav_toolbar;
FOLDERSETTINGS fs;
IExplorerBrowserEvents *events;
@ -340,12 +340,9 @@ static void make_explorer_window(IShellFolder* startFolder)
fs.ViewMode = FVM_DETAILS;
fs.fFlags = FWF_AUTOARRANGE;
explorerRect.left = 0;
explorerRect.top = 0;
explorerRect.right = DEFAULT_WIDTH;
explorerRect.bottom = DEFAULT_HEIGHT;
IExplorerBrowser_Initialize(info->browser,info->main_window,&explorerRect,&fs);
SetRect(&rect, 0, 0, DEFAULT_WIDTH, DEFAULT_HEIGHT);
IExplorerBrowser_Initialize(info->browser,info->main_window,&rect,&fs);
IExplorerBrowser_SetOptions(info->browser,EBO_SHOWFRAMES);
SetWindowLongPtrW(info->main_window,EXPLORER_INFO_INDEX,(LONG_PTR)info);
@ -392,9 +389,10 @@ static void make_explorer_window(IShellFolder* startFolder)
WS_CHILD | WS_VISIBLE | CBS_DROPDOWN,
0,0,DEFAULT_WIDTH,PATHBOX_HEIGHT,rebar,NULL,
explorer_hInstance,NULL);
band_info.cyChild=PATHBOX_HEIGHT;
GetWindowRect(info->path_box, &rect);
band_info.cyChild = rect.bottom - rect.top;
band_info.cx=0;
band_info.cyMinChild=PATHBOX_HEIGHT;
band_info.cyMinChild = rect.bottom - rect.top;
band_info.cxMinChild=0;
band_info.fMask|=RBBIM_TEXT;
band_info.lpText=pathbox_label;