mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 01:52:57 +00:00
[SHELL32] Display Desktop folder name in IShellBrowser correctly (#7105)
- When the address-bar asks for FORADDRESSBAR, that should prioritized over FORPARSING. - DefView should not enter special status-bar mode when viewing the Desktop as a shell folder in the normal IShellBrowser (DefView in Progman/desktop continues to use the old mode).
This commit is contained in:
parent
cabeda8f00
commit
4da2e78319
4 changed files with 11 additions and 8 deletions
|
@ -254,6 +254,7 @@ private:
|
|||
void _HandleStatusBarResize(int width);
|
||||
void _ForceStatusBarResize();
|
||||
void _DoCopyToMoveToFolder(BOOL bCopy);
|
||||
BOOL IsDesktop() const { return m_FolderSettings.fFlags & FWF_DESKTOP; }
|
||||
|
||||
public:
|
||||
CDefView();
|
||||
|
@ -1675,7 +1676,7 @@ LRESULT CDefView::OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandl
|
|||
|
||||
// A folder is special if it is the Desktop folder,
|
||||
// a network folder, or a Control Panel folder
|
||||
m_isParentFolderSpecial = _ILIsDesktop(m_pidlParent) || _ILIsNetHood(m_pidlParent)
|
||||
m_isParentFolderSpecial = IsDesktop() || _ILIsNetHood(m_pidlParent)
|
||||
|| _ILIsControlPanel(ILFindLastID(m_pidlParent));
|
||||
|
||||
// Only force StatusBar part refresh if the state
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue