mirror of
https://github.com/reactos/reactos.git
synced 2025-02-20 15:35:04 +00:00
[BROWSEUI] Use details view by default (#5452) CORE-18904
* Detail view by default, except in special folders * Added hack/fixme disclaimer
This commit is contained in:
parent
02b65773a3
commit
d70e798977
1 changed files with 10 additions and 1 deletions
|
@ -804,14 +804,23 @@ HRESULT CShellBrowser::BrowseToPIDL(LPCITEMIDLIST pidl, long flags)
|
|||
CComPtr<IShellFolder> newFolder;
|
||||
FOLDERSETTINGS newFolderSettings;
|
||||
HRESULT hResult;
|
||||
CLSID clsid;
|
||||
BOOL HasIconViewType;
|
||||
|
||||
// called by shell view to browse to new folder
|
||||
// also called by explorer band to navigate to new folder
|
||||
hResult = SHBindToFolder(pidl, &newFolder);
|
||||
if (FAILED_UNEXPECTEDLY(hResult))
|
||||
return hResult;
|
||||
// HACK & FIXME: Get view mode from shellbag when fully implemented.
|
||||
IUnknown_GetClassID(newFolder, &clsid);
|
||||
HasIconViewType = clsid == CLSID_MyComputer || clsid == CLSID_ControlPanel ||
|
||||
clsid == CLSID_ShellDesktop;
|
||||
|
||||
newFolderSettings.ViewMode = FVM_ICON;
|
||||
if (HasIconViewType)
|
||||
newFolderSettings.ViewMode = FVM_ICON;
|
||||
else
|
||||
newFolderSettings.ViewMode = FVM_DETAILS;
|
||||
newFolderSettings.fFlags = 0;
|
||||
hResult = BrowseToPath(newFolder, pidl, &newFolderSettings, flags);
|
||||
if (FAILED_UNEXPECTEDLY(hResult))
|
||||
|
|
Loading…
Reference in a new issue