ReactOS 0.4.15-dev-8434-g155a7c7
ShellSettings Struct Reference

#include <settings.h>

Public Member Functions

void Save ()
 
void Load ()
 
void Reset ()
 

Public Attributes

BOOL fLocked = TRUE
 
BOOL fShowGoButton = TRUE
 
BOOL fStatusBarVisible = TRUE
 

Detailed Description

Definition at line 13 of file settings.h.

Member Function Documentation

◆ Load()

void ShellSettings::Load ( )

Definition at line 24 of file settings.cpp.

25{
26 fStatusBarVisible = SHRegGetBoolUSValueW(L"Software\\Microsoft\\Internet Explorer\\Main",
27 L"StatusBarOther", FALSE, TRUE);
28
29 fShowGoButton = SHRegGetBoolUSValueW(L"Software\\Microsoft\\Internet Explorer\\Main",
30 L"ShowGoButton", FALSE, TRUE);
31
32 fLocked = SHRegGetBoolUSValueW(L"Software\\Microsoft\\Internet Explorer\\Toolbar",
33 L"Locked", FALSE, TRUE);
34}
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
BOOL WINAPI SHRegGetBoolUSValueW(LPCWSTR pszSubKey, LPCWSTR pszValue, BOOL fIgnoreHKCU, BOOL fDefault)
Definition: reg.c:770
#define L(x)
Definition: ntvdm.h:50
BOOL fStatusBarVisible
Definition: settings.h:17
BOOL fLocked
Definition: settings.h:15
BOOL fShowGoButton
Definition: settings.h:16

Referenced by CShellBrowser::CShellBrowser().

◆ Reset()

void ShellSettings::Reset ( )
inline

Definition at line 21 of file settings.h.

Referenced by CShellBrowser::ApplyBrowserDefaultFolderSettings().

◆ Save()

void ShellSettings::Save ( )

Definition at line 12 of file settings.cpp.

13{
14 SHRegSetUSValueW(L"Software\\Microsoft\\Internet Explorer\\Main", L"StatusBarOther",
16
17 SHRegSetUSValueW(L"Software\\Microsoft\\Internet Explorer\\Main", L"ShowGoButton",
19
20 SHRegSetUSValueW(L"Software\\Microsoft\\Internet Explorer\\Toolbar", L"Locked",
22}
LONG WINAPI SHRegSetUSValueW(LPCWSTR pszSubKey, LPCWSTR pszValue, DWORD dwType, LPVOID pvData, DWORD cbData, DWORD dwFlags)
Definition: reg.c:673
#define REG_DWORD
Definition: sdbapi.c:596
#define SHREGSET_FORCE_HKCU
Definition: shlwapi.h:312

Referenced by CShellBrowser::ApplyBrowserDefaultFolderSettings(), CInternetToolbar::LockUnlockToolbars(), CShellBrowser::OnToggleStatusBarVisible(), and Reset().

Member Data Documentation

◆ fLocked

◆ fShowGoButton

BOOL ShellSettings::fShowGoButton = TRUE

Definition at line 16 of file settings.h.

Referenced by Load(), CInternetToolbar::OnContextMenu(), and Save().

◆ fStatusBarVisible


The documentation for this struct was generated from the following files: