00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #if !defined(AFX_PAGESETTINGSTRAFFIC_H__20363ACA_EC88_4DEB_A9C1_D8B4CE8A365E__INCLUDED_)
00023 #define AFX_PAGESETTINGSTRAFFIC_H__20363ACA_EC88_4DEB_A9C1_D8B4CE8A365E__INCLUDED_
00024
00025 #pragma once
00026
00027 #include "WndSettingsPage.h"
00028
00029 class CSettingEdit;
00030
00031
00032 class CAdvancedSettingsPage : public CSettingsPage
00033 {
00034
00035 public:
00036 CAdvancedSettingsPage();
00037 virtual ~CAdvancedSettingsPage();
00038
00039 DECLARE_DYNCREATE(CAdvancedSettingsPage)
00040
00041
00042 public:
00043 void AddSetting(LPVOID pValue, DWORD nScale = 1, DWORD nMin = 0, DWORD nMax = 0, LPCTSTR pszSuffix = NULL);
00044 void UpdateItem(int nItem);
00045
00046 class EditItem
00047 {
00048
00049 public:
00050 EditItem(CSettings::Item* pItem, DWORD nScale = 1, DWORD nMin = 0, DWORD nMax = 0, LPCTSTR pszSuffix = NULL);
00051 virtual ~EditItem();
00052
00053
00054 public:
00055 CSettings::Item* m_pItem;
00056 public:
00057 CString m_sName;
00058 DWORD m_nScale;
00059 DWORD m_nMin;
00060 DWORD m_nMax;
00061 CString m_sSuffix;
00062 DWORD m_nValue;
00063
00064
00065 public:
00066 void Commit();
00067
00068 };
00069
00070
00071 public:
00072
00073 enum { IDD = IDD_SETTINGS_ADVANCED };
00074 CSpinButtonCtrl m_wndValueSpin;
00075 CEdit m_wndValue;
00076 CListCtrl m_wndList;
00077
00078
00079
00080 public:
00081
00082 public:
00083 virtual void OnOK();
00084 protected:
00085 virtual void DoDataExchange(CDataExchange* pDX);
00086
00087
00088
00089 protected:
00090
00091 virtual BOOL OnInitDialog();
00092 afx_msg void OnDestroy();
00093 afx_msg void OnItemChangedProperties(NMHDR* pNMHDR, LRESULT* pResult);
00094 afx_msg void OnChangeValue();
00095 afx_msg void OnColumnClickProperties(NMHDR* pNMHDR, LRESULT* pResult);
00096
00097 DECLARE_MESSAGE_MAP()
00098
00099 };
00100
00101
00102
00103 #endif // !defined(AFX_PAGESETTINGSTRAFFIC_H__20363ACA_EC88_4DEB_A9C1_D8B4CE8A365E__INCLUDED_)