mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user