1 //*******************************************************************************
4 // You may use this source code, compile or redistribute it as part of your application
5 // for free. You cannot redistribute it as a part of a software development
6 // library without the agreement of the author. If the sources are
7 // distributed along with the application, you should leave the original
8 // copyright notes in the source code without any changes.
9 // This code can be used WITHOUT ANY WARRANTIES at your own risk.
11 // For the latest updates to this code, check this site:
12 // http://www.masmex.com
15 // Copyright(C) 2000 Philip Oldaker <email: philip@masmex.com>
16 //*******************************************************************************
18 #ifndef __SHELLSETTINGS_H__
19 #define __SHELLSETTINGS_H__
21 ////////////////////////////////////////////////
23 ////////////////////////////////////////////////
28 virtual ~CShellSettings();
32 bool DesktopHTML() const { return m_sfs.fDesktopHTML != 0; }
33 bool DontPrettyPath() const { return m_sfs.fDontPrettyPath != 0; }
34 bool DoubleClickInWebView() const { return m_sfs.fDoubleClickInWebView != 0; }
35 bool HideIcons() const { return m_sfs.fHideIcons != 0; }
36 bool MapNetDrvBtn() const { return m_sfs.fMapNetDrvBtn != 0; }
37 bool NoConfirmRecycle() const { return m_sfs.fNoConfirmRecycle != 0; }
38 bool ShowAllObjects() const { return m_sfs.fShowAllObjects != 0; }
39 bool ShowAttribCol() const { return m_sfs.fShowAttribCol != 0; }
40 bool ShowCompColor() const { return m_sfs.fShowCompColor != 0; }
41 bool ShowExtensions() const { return m_sfs.fShowExtensions != 0; }
42 bool ShowInfoTip() const { return m_sfs.fShowInfoTip != 0; }
43 bool ShowSysFiles() const { return m_sfs.fShowSysFiles != 0; }
44 bool Win95Classic() const { return m_sfs.fWin95Classic != 0; }
47 const SHELLFLAGSTATE &GetSFS() const { return m_sfs; }
49 operator const SHELLFLAGSTATE& () { return m_sfs; }
50 operator const SHELLFLAGSTATE* () { return &m_sfs; }
54 HINSTANCE m_hinstShell32;
57 #endif //__SHELLSETTINGS_H__