Commit 7dcf573c authored by Jactry Zeng's avatar Jactry Zeng Committed by Alexandre Julliard

shell32: Update view mode flags while creating IShellView for IExplorerBrowser.

parent 3ed6413a
......@@ -362,6 +362,7 @@ static HRESULT create_new_shellview(ExplorerBrowserImpl *This, IShellItem *psi)
This->hwnd_sv = NULL;
}
This->fs.fFlags |= FWF_USESEARCHFOLDER | FWF_FULLROWSELECT | FWF_NOCLIENTEDGE;
hr = IShellView_CreateViewWindow(psv, This->psv, &This->fs, psb, &This->sv_rc, &hwnd_new);
if(SUCCEEDED(hr))
{
......
......@@ -1726,6 +1726,8 @@ static void test_folder_settings(void)
ok(hr == E_INVALIDARG, "Got hr %#lx.\n", hr);
ebrowser_browse_to_desktop(browser);
settings.fFlags |= FWF_USESEARCHFOLDER | FWF_FULLROWSELECT | FWF_NOCLIENTEDGE;
CHECK_SETTINGS(browser, settings);
settings.ViewMode = FVM_AUTO; settings.fFlags = FWF_AUTOARRANGE;
hr = IExplorerBrowser_SetFolderSettings(browser, &settings);
......
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