Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
2.1 KiB

  1. #if !defined(AFX_LOGSETTINGSDLG_H__62C9BACD_D7C6_11D2_A1E2_00A0C9AFE114__INCLUDED_)
  2. #define AFX_LOGSETTINGSDLG_H__62C9BACD_D7C6_11D2_A1E2_00A0C9AFE114__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // LogSettingsDlg.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CLogSettingsDlg dialog
  10. class CLogSettingsDlg : public CPropertyPage
  11. {
  12. DECLARE_DYNCREATE(CLogSettingsDlg)
  13. // Construction
  14. public:
  15. CLogSettingsDlg();
  16. ~CLogSettingsDlg();
  17. void SetDatabase(WCHAR const * file) { m_Database = file; m_Import = (m_Database.GetLength() > 0); }
  18. void SetDispatchLog(WCHAR const * logfile) { m_LogFile = logfile; }
  19. void SetImmediateStart(BOOL bVal) { m_StartImmediately = bVal; }
  20. virtual BOOL OnSetActive( );
  21. // Dialog Data
  22. //{{AFX_DATA(CLogSettingsDlg)
  23. enum { IDD = IDD_STARTSTOP };
  24. CButton m_ImportControl;
  25. CEdit m_IntervalEditControl;
  26. CEdit m_LogEditControl;
  27. CStatic m_RefreshLabel;
  28. CStatic m_LogLabel;
  29. CStatic m_DBLabel;
  30. CEdit m_DBEditControl;
  31. CButton m_StopButton;
  32. CButton m_StartButton;
  33. long m_Interval;
  34. CString m_LogFile;
  35. CString m_Database;
  36. BOOL m_Import;
  37. //}}AFX_DATA
  38. // Overrides
  39. // ClassWizard generate virtual function overrides
  40. //{{AFX_VIRTUAL(CLogSettingsDlg)
  41. public:
  42. virtual void OnOK();
  43. virtual BOOL OnQueryCancel();
  44. virtual BOOL OnApply();
  45. protected:
  46. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  47. virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
  48. //}}AFX_VIRTUAL
  49. // Implementation
  50. protected:
  51. HANDLE m_ThreadHandle;
  52. DWORD m_ThreadID;
  53. BOOL m_StartImmediately;
  54. // Generated message map functions
  55. //{{AFX_MSG(CLogSettingsDlg)
  56. afx_msg void OnStartMonitor();
  57. afx_msg void OnStopMonitor();
  58. virtual BOOL OnInitDialog();
  59. afx_msg void OnChangeLogfile();
  60. afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  61. //}}AFX_MSG
  62. DECLARE_MESSAGE_MAP()
  63. };
  64. //{{AFX_INSERT_LOCATION}}
  65. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  66. #endif // !defined(AFX_LOGSETTINGSDLG_H__62C9BACD_D7C6_11D2_A1E2_00A0C9AFE114__INCLUDED_)