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.

115 lines
3.4 KiB

  1. #if !defined(AFX_FILELOGS_H_INCLUDED_)
  2. #define AFX_FILELOGS_H_INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // FileLogs.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CFileLogs dialog
  10. #define IDD_FILE_LOGS_DLG 2000
  11. #define IDC_FILELOG_FIRST_HELP_CTRL_ID 2006
  12. #define IDC_FILES_SIZE_GROUP 2001
  13. #define IDC_FILES_FOLDER_CAPTION 2002
  14. #define IDC_FILES_FILENAME_CAPTION 2003
  15. #define IDC_FILES_SIZE_LIMIT_UNITS 2004
  16. #define IDC_FILES_SIZE_LIMIT_SPIN 2005
  17. #define IDC_FILES_FOLDER_EDIT 2006
  18. #define IDC_FILES_FOLDER_BTN 2007
  19. #define IDC_FILES_FILENAME_EDIT 2008
  20. #define IDC_FILES_SIZE_MAX_BTN 2009
  21. #define IDC_FILES_SIZE_LIMIT_BTN 2010
  22. #define IDC_FILES_SIZE_LIMIT_EDIT 2011
  23. class CFileLogs : public CDialog
  24. {
  25. public:
  26. // Construction
  27. CFileLogs(CWnd* pParent = NULL); // standard constructor
  28. virtual ~CFileLogs(){};
  29. DWORD SetContextHelpFilePath(const CString& rstrPath);
  30. //{{AFX_DATA(CFileLogs)
  31. enum { IDD = IDD_FILE_LOGS_DLG };
  32. CString m_strFileBaseName;
  33. CString m_strFolderName;
  34. DWORD m_dwSerialNumber;
  35. DWORD m_dwMaxSize;
  36. int m_nFileSizeRdo;
  37. //}}AFX_DATA
  38. UINT m_dwMaxSizeInternal;
  39. DWORD m_dwLogFileTypeValue;
  40. BOOL m_bAutoNameSuffix;
  41. DWORD m_dwFocusControl;
  42. HINSTANCE m_hModule;
  43. CSmLogQuery* m_pLogQuery;
  44. private:
  45. BOOL IsValidLocalData();
  46. void FileSizeBtn(BOOL bInit);
  47. void FileSizeBtnEnable();
  48. void OnDeltaposSpin(NMHDR *pNMHDR, LRESULT *pResult, DWORD *pValue, DWORD dMinValue, DWORD dMaxValue);
  49. // Overrides
  50. // ClassWizard generated virtual function overrides
  51. //{{AFX_VIRTUAL(CFileLogs)
  52. protected:
  53. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  54. //}}AFX_VIRTUAL
  55. // Implementation
  56. protected:
  57. // Generated message map functions
  58. //{{AFX_MSG(CFileLogs)
  59. afx_msg void OnFilesFolderBtn();
  60. afx_msg void OnChangeFilesFilenameEdit();
  61. afx_msg void OnChangeFilesFolderEdit();
  62. afx_msg void OnChangeFilesSizeLimitEdit();
  63. afx_msg void OnFilesSizeLimitBtn();
  64. afx_msg void OnDeltaposFilesSizeLimitSpin(NMHDR* pNMHDR, LRESULT* pResult);
  65. afx_msg void OnFilesSizeMaxBtn();
  66. afx_msg void OnKillfocusFilesFilenameEdit();
  67. afx_msg void OnKillfocusFilesFolderEdit();
  68. afx_msg void OnKillfocusFilesSizeLimitEdit();
  69. afx_msg BOOL OnHelpInfo(HELPINFO *);
  70. afx_msg void OnContextMenu( CWnd*, CPoint );
  71. virtual BOOL OnInitDialog();
  72. virtual void OnOK();
  73. //}}AFX_MSG
  74. DECLARE_MESSAGE_MAP()
  75. private:
  76. void ValidateTextEdit(CDataExchange * pDX,
  77. int nIDC,
  78. int nMaxChars,
  79. DWORD * value,
  80. DWORD minValue,
  81. DWORD maxValue);
  82. BOOL ValidateDWordInterval(int nIDC,
  83. LPCWSTR strLogName,
  84. long lValue,
  85. DWORD minValue,
  86. DWORD maxValue);
  87. CString m_strHelpFilePath;
  88. };
  89. //{{AFX_INSERT_LOCATION}}
  90. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  91. #endif // !defined(AFX_FILELOGS_H__92E00D45_B61D_4CDF_82E4_96BB52D4D236__INCLUDED_)