ReactOS 0.4.15-dev-7961-gdcf9eb0
ShellSettings Struct Reference

#include <settings.h>

Public Member Functions

void Save ()
 
void Load ()
 

Public Attributes

BOOL fLocked = FALSE
 
BOOL fShowGoButton = FALSE
 
BOOL fStatusBarVisible = FALSE
 

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, FALSE);
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(), and CInternetToolbar::OnContextMenu().

◆ 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 CInternetToolbar::LockUnlockToolbars(), and CShellBrowser::OnToggleStatusBarVisible().

Member Data Documentation

◆ fLocked

◆ fShowGoButton

BOOL ShellSettings::fShowGoButton = FALSE

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: