Dlg_Settings.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #pragma once
  2. #include "afxcmn.h"
  3. #include "afxwin.h"
  4. // CDlg_Settings 对话框
  5. class CDlg_Settings : public CDialog
  6. {
  7. DECLARE_DYNAMIC(CDlg_Settings)
  8. public:
  9. CDlg_Settings(CWnd* pParent = NULL); // 标准构造函数
  10. virtual ~CDlg_Settings();
  11. // 对话框数据
  12. enum { IDD = IDD_DLG_SETTINGS };
  13. protected:
  14. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  15. DECLARE_MESSAGE_MAP()
  16. public:
  17. virtual BOOL OnInitDialog();
  18. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  19. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  20. void SetPos( CRect rect );
  21. void Save();
  22. CListCtrl m_List_Var;
  23. CButton m_Btn_Add;
  24. CButton m_Btn_Del;
  25. CButton m_Btn_Clear;
  26. CButton m_Btn_Save;
  27. afx_msg void OnBnClickedBtnAdd();
  28. afx_msg void OnBnClickedBtnDelete();
  29. afx_msg void OnBnClickedBtnClear();
  30. afx_msg void OnBnClickedBtnSave();
  31. bool IsExist( CString sDevName,CString sVarName );
  32. void SaveExcel( CListCtrl* pList, CString sExcelPath );
  33. void OpenExcel(CListCtrl* pList, CString strTitle);
  34. BOOL m_nCheck_Day;
  35. BOOL m_nCheck_Week;
  36. BOOL m_nCheck_Month;
  37. BOOL m_nCheck_Year;
  38. virtual BOOL PreTranslateMessage(MSG* pMsg);
  39. };