| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #pragma once
- #include "afxcmn.h"
- #include "afxwin.h"
- // CDlg_Settings 对话框
- class CDlg_Settings : public CDialog
- {
- DECLARE_DYNAMIC(CDlg_Settings)
- public:
- CDlg_Settings(CWnd* pParent = NULL); // 标准构造函数
- virtual ~CDlg_Settings();
- // 对话框数据
- enum { IDD = IDD_DLG_SETTINGS };
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
- DECLARE_MESSAGE_MAP()
- public:
- virtual BOOL OnInitDialog();
- afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- void SetPos( CRect rect );
- void Save();
- CListCtrl m_List_Var;
- CButton m_Btn_Add;
- CButton m_Btn_Del;
- CButton m_Btn_Clear;
- CButton m_Btn_Save;
- afx_msg void OnBnClickedBtnAdd();
- afx_msg void OnBnClickedBtnDelete();
- afx_msg void OnBnClickedBtnClear();
- afx_msg void OnBnClickedBtnSave();
- bool IsExist( CString sDevName,CString sVarName );
- void SaveExcel( CListCtrl* pList, CString sExcelPath );
- void OpenExcel(CListCtrl* pList, CString strTitle);
- BOOL m_nCheck_Day;
- BOOL m_nCheck_Week;
- BOOL m_nCheck_Month;
- BOOL m_nCheck_Year;
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- };
|