CStringSetting Class Reference

#include <Setting.h>

Inheritance diagram for CStringSetting:

Inheritance graph
[legend]
Collaboration diagram for CStringSetting:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CStringSetting (LPCSTR DisplayName, long Default, LPCSTR Section, LPCSTR Entry, CSettingGroup *pGroup=NULL)
 CStringSetting (SETTING *pSetting, CSettingGroup *pGroup=NULL)
SETTING_TYPE GetType ()
void GetDisplayText (LPSTR szBuffer)
void SetDefault ()
void ChangeDefault (long NewDefault, BOOL bDontSetValue=FALSE)
void SetValue (long NewValue, BOOL bSupressOnChange=FALSE)
void Up ()
void Down ()
void ChangeValue (eCHANGEVALUE NewValue)
BOOL ReadFromIni ()
void WriteToIni (BOOL bOptimizeFileAccess)
BOOL ReadFromIniSubSection (LPCSTR szSubSection)
void WriteToIniSubSection (LPCSTR szSubSection, BOOL bOptimizeFileAccess=TRUE)
void SetupControl (HWND hWnd)
void SetControlValue (HWND hWnd)
void SetFromControl (HWND hWnd)
void FillSettingStructure (SETTING *pSetting)

Detailed Description

Simple setting with a character string value


Constructor & Destructor Documentation

CStringSetting::CStringSetting LPCSTR  DisplayName,
long  Default,
LPCSTR  Section,
LPCSTR  Entry,
CSettingGroup pGroup = NULL
 

Character string setting. For the rest of the parameters:

See also:
CSimpleSetting


Member Function Documentation

void CStringSetting::ChangeDefault long  NewDefault,
BOOL  bDontSetValue = FALSE
[virtual]
 

Change default value

Reimplemented from CSimpleSetting.

BOOL CStringSetting::ReadFromIni  )  [virtual]
 

Read value from default location in .ini file

Reimplemented from CSimpleSetting.

BOOL CStringSetting::ReadFromIniSubSection LPCSTR  szSubSection  )  [virtual]
 

Read value from sub section in .ini file

Parameters:
szSubSection Set to NULL to read from the default location
bSetDefaultOnFailure If the setting was not in the .ini file, set the setting's value to the default value
pSettingFlags Override setting flags of current setting if not NULL
Returns:
TRUE if value was in .ini file

Reimplemented from CSimpleSetting.

void CStringSetting::SetDefault  )  [virtual]
 

Set default value.

Reimplemented from CSimpleSetting.

void CStringSetting::SetValue long  NewValue,
BOOL  bSupressOnChange = FALSE
[virtual]
 

Set value

Reimplemented from CSimpleSetting.

void CStringSetting::WriteToIniSubSection LPCSTR  szSubSection,
BOOL  bOptimizeFileAccess = TRUE
[virtual]
 

Write value to szSubsection in .ini file Override value and setting flags if Value and/or pSettingFlags is not NULL.

Reimplemented from CSimpleSetting.


The documentation for this class was generated from the following files:
Generated on Mon Oct 27 09:54:57 2003 for DScaler by doxygen 1.3.4