139 lines
4.7 KiB
C++
139 lines
4.7 KiB
C++
// XTShellSettings.h: interface for the CXTShellSettings class.
|
||
//
|
||
// This file is a part of the Xtreme Toolkit for MFC.
|
||
// ©1998-2003 Codejock Software, All Rights Reserved.
|
||
//
|
||
// This source code can only be used under the terms and conditions
|
||
// outlined in the accompanying license agreement.
|
||
//
|
||
// support@codejock.com
|
||
// http://www.codejock.com
|
||
//
|
||
//////////////////////////////////////////////////////////////////////
|
||
|
||
#if !defined(__XTSHELLSETTINGS_H__)
|
||
#define __XTSHELLSETTINGS_H__
|
||
|
||
#if _MSC_VER > 1000
|
||
#pragma once
|
||
#endif // _MSC_VER > 1000
|
||
|
||
//////////////////////////////////////////////////////////////////////
|
||
// Summary: CXTShellSettings is a SHELLFLAGSTATE struct derived class. CXTShellSettings
|
||
// extends the SHELLFLAGSTATE struct for easy access to the shell flag
|
||
// state settings.
|
||
class _XT_EXT_CLASS CXTShellSettings : public SHELLFLAGSTATE
|
||
{
|
||
public:
|
||
|
||
// Summary: Constructs a CXTShellSettings object.
|
||
CXTShellSettings();
|
||
|
||
// Summary: Destroys a CXTShellSettings object, handles cleanup and de-allocation.
|
||
virtual ~CXTShellSettings();
|
||
|
||
public:
|
||
|
||
// Returns: true if enabled, otherwise returns false.
|
||
// Summary: This member function checks to see if the Show All Files option is
|
||
// enabled.
|
||
bool ShowAllFiles();
|
||
|
||
// Returns: true if enabled, otherwise returns false.
|
||
// Summary: This member function checks to see if the Hide File Extensions for
|
||
// Known File Types option is disabled.
|
||
bool ShowExtensions();
|
||
|
||
// Returns: true if enabled, otherwise returns false.
|
||
// Summary: This member function checks to see if the Display Delete Confirmation
|
||
// Dialog box in the Recycle Bin is enabled.
|
||
bool NoConfirmRecycle();
|
||
|
||
// Returns: true if enabled, otherwise returns false.
|
||
// Summary: This member function checks to see if the Do Not Show Hidden Files
|
||
// option is selected.
|
||
bool ShowSysFiles();
|
||
|
||
// Returns: true if enabled, otherwise returns false.
|
||
// Summary: This member function checks to see if the Display Compressed Files
|
||
// and Folders with Alternate Color option is enabled.
|
||
bool ShowCompColor();
|
||
|
||
// Returns: true if enabled, otherwise returns false.
|
||
// Summary: This member function checks to see if the Double-Click to Open an
|
||
// Item option is enabled.
|
||
bool DoubleClickOpen();
|
||
|
||
// Returns: true if enabled, otherwise returns false.
|
||
// Summary: This member function checks to see if the Active Desktop – View as
|
||
// Web Page option is enabled.
|
||
bool HTMLDesktop();
|
||
|
||
// Returns: true if enabled, otherwise returns false.
|
||
// Summary: This member function checks to see if the Classic Style option is
|
||
// enabled.
|
||
bool Win95Classic();
|
||
|
||
// Returns: true if enabled, otherwise returns false.
|
||
// Summary: This member function checks to see if the Allow All Uppercase Names
|
||
// option is enabled.
|
||
bool AllowUpperCase();
|
||
|
||
// Returns: true if enabled, otherwise returns false.
|
||
// Summary: This member function checks to see if the Show File Attributes in
|
||
// Detail View option is enabled.
|
||
bool ShowAttributes();
|
||
|
||
// Returns: true if enabled, otherwise returns false.
|
||
// Summary: This member function checks to see if the Show Map Network Drive
|
||
// Button in Toolbar option is enabled.
|
||
bool ShowMapNetworkDrive();
|
||
|
||
// Returns: true if enabled, otherwise returns false.
|
||
// Summary: This member function checks to see if the Show Info Tips for Items
|
||
// in Folders & Desktop option is enabled.
|
||
bool ShowInfoTips();
|
||
};
|
||
|
||
//////////////////////////////////////////////////////////////////////
|
||
|
||
AFX_INLINE bool CXTShellSettings::ShowAllFiles() {
|
||
return fShowAllObjects != 0 ? true : false;
|
||
}
|
||
AFX_INLINE bool CXTShellSettings::ShowExtensions() {
|
||
return fShowExtensions != 0 ? true : false;
|
||
}
|
||
AFX_INLINE bool CXTShellSettings::NoConfirmRecycle() {
|
||
return fNoConfirmRecycle != 0 ? true : false;
|
||
}
|
||
AFX_INLINE bool CXTShellSettings::ShowSysFiles() {
|
||
return fShowSysFiles != 0 ? true : false;
|
||
}
|
||
AFX_INLINE bool CXTShellSettings::ShowCompColor() {
|
||
return fShowCompColor != 0 ? true : false;
|
||
}
|
||
AFX_INLINE bool CXTShellSettings::DoubleClickOpen() {
|
||
return fDoubleClickInWebView != 0 ? true : false;
|
||
}
|
||
AFX_INLINE bool CXTShellSettings::HTMLDesktop() {
|
||
return fDesktopHTML != 0 ? true : false;
|
||
}
|
||
AFX_INLINE bool CXTShellSettings::Win95Classic() {
|
||
return fWin95Classic != 0 ? true : false;
|
||
}
|
||
AFX_INLINE bool CXTShellSettings::AllowUpperCase() {
|
||
return fDontPrettyPath != 0 ? true : false;
|
||
}
|
||
AFX_INLINE bool CXTShellSettings::ShowAttributes() {
|
||
return fShowAttribCol != 0 ? true : false;
|
||
}
|
||
AFX_INLINE bool CXTShellSettings::ShowMapNetworkDrive() {
|
||
return fMapNetDrvBtn != 0 ? true : false;
|
||
}
|
||
AFX_INLINE bool CXTShellSettings::ShowInfoTips() {
|
||
return fShowInfoTip != 0 ? true : false;
|
||
}
|
||
|
||
//////////////////////////////////////////////////////////////////////
|
||
|
||
#endif // !defined(__XTSHELLSETTINGS_H__)
|