mirror of
https://github.com/reactos/reactos.git
synced 2024-11-02 12:53:33 +00:00
f744bb2994
Adds the option to set the address edit box to use the display name or the full path. Also refreshes the window title and edit box in all open explorer windows when changing these settings using the folder options dialog. ## PROPOSED CHANGES ## - Create a new CabinetStateSettings type that inherits from the CABINETSTATE type. This allows us to add additional cabinet state settings not exposed in the CABINETSTATE type as well as adding a Load() method to easily populate the cabinet state settings. - Add a global cabinet state settings object. While most settings in browseui are stored independently in each shellbrowser window, cabinet state settings are global and apply to every shellbrowser window. This can be confirmed on Windows Server 2003 and Windows 7. - When receiving the WM_SETTINGCHANGE window message from the folder options dialog, refresh the title of the window and the text in the address edit box. This is the same behavior as Windows Server 2003 and Windows 7. Add a DWORD registry value to HKCU\...\Explorer\CabinetState\FullPathAddress to allow users to toggle this setting on or off in our folder options. CORE-9277
31 lines
636 B
C
31 lines
636 B
C
/*
|
|
* PROJECT: ReactOS browseui
|
|
* LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
|
|
* PURPOSE: Settings header file
|
|
* COPYRIGHT: Copyright 2023 Carl Bialorucki <cbialo2@outlook.com>
|
|
*/
|
|
|
|
#include "precomp.h"
|
|
|
|
#define BWM_SETTINGCHANGE (WM_USER + 300)
|
|
#define BWM_GETSETTINGSPTR (WM_USER + 301)
|
|
|
|
struct ShellSettings
|
|
{
|
|
BOOL fLocked = FALSE;
|
|
BOOL fShowGoButton = FALSE;
|
|
BOOL fStatusBarVisible = FALSE;
|
|
|
|
void Save();
|
|
void Load();
|
|
};
|
|
|
|
struct CabinetStateSettings : CABINETSTATE
|
|
{
|
|
BOOL fFullPathAddress = TRUE;
|
|
|
|
void Load();
|
|
};
|
|
|
|
extern CabinetStateSettings gCabinetState;
|