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.

97 lines
2.1 KiB

  1. // LogGenPg.h : header file
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. // CLogGeneral dialog
  5. class CLogGeneral : public CPropertyPage
  6. {
  7. DECLARE_DYNCREATE(CLogGeneral)
  8. // Construction
  9. public:
  10. CLogGeneral();
  11. ~CLogGeneral();
  12. int BrowseForFolderCallback(HWND hwnd, UINT uMsg, LPARAM lParam);
  13. CComboBox* m_pComboLog;
  14. // metabase target
  15. CString m_szServer;
  16. CString m_szMeta;
  17. IMSAdminBase* m_pMB;
  18. // editing local machine
  19. BOOL m_fLocalMachine;
  20. BOOL m_fShowLocalTimeCheckBox;
  21. // the two-letter file prefix
  22. CString szPrefix;
  23. // the longer file size prefix
  24. CString szSizePrefix;
  25. // Dialog Data
  26. //{{AFX_DATA(CLogGeneral)
  27. enum { IDD = IDD_LOG_GENERAL };
  28. CButton m_wndPeriod;
  29. CButton m_wndUseLocalTime;
  30. CButton m_cbttn_browse;
  31. CEdit m_cedit_directory;
  32. CEdit m_cedit_size;
  33. CSpinButtonCtrl m_cspin_spin;
  34. CStatic m_cstatic_units;
  35. CString m_sz_directory;
  36. CString m_sz_filesample;
  37. BOOL m_fUseLocalTime;
  38. int m_int_period;
  39. //}}AFX_DATA
  40. // CILong m_dword_filesize;
  41. DWORD m_dword_filesize;
  42. // Overrides
  43. // ClassWizard generate virtual function overrides
  44. //{{AFX_VIRTUAL(CLogGeneral)
  45. public:
  46. virtual BOOL OnSetActive();
  47. virtual BOOL OnApply();
  48. protected:
  49. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  50. //}}AFX_VIRTUAL
  51. // Implementation
  52. protected:
  53. // Generated message map functions
  54. //{{AFX_MSG(CLogGeneral)
  55. afx_msg void OnBrowse();
  56. afx_msg void OnLogDaily();
  57. afx_msg void OnLogMonthly();
  58. afx_msg void OnLogWhensize();
  59. afx_msg void OnLogWeekly();
  60. afx_msg void OnChangeLogDirectory();
  61. afx_msg void OnChangeLogSize();
  62. afx_msg void OnLogUnlimited();
  63. afx_msg void OnLogHourly();
  64. afx_msg void OnUseLocalTime();
  65. //}}AFX_MSG
  66. DECLARE_MESSAGE_MAP()
  67. void DoHelp();
  68. // update the sample file stirng
  69. virtual void UpdateSampleFileString();
  70. HRESULT GetServiceVersion();
  71. void Init();
  72. void UpdateDependants();
  73. private:
  74. // initialized flag
  75. BOOL m_fInitialized;
  76. BOOL m_fIsModified;
  77. LPTSTR m_pPathTemp;
  78. CString m_NetHood;
  79. DWORD m_dwVersionMajor, m_dwVersionMinor;
  80. };