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.

110 lines
3.1 KiB

  1. #if !defined(AFX_SQLPROP_H__INCLUDED_)
  2. #define AFX_SQLPROP_H__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // SqlProp.h : header file
  7. //
  8. #define IDD_SQL_PROP 2100
  9. #define IDC_SQL_FIRST_HELP_CTRL_ID 2101
  10. #define IDC_SQL_DSN_COMBO 2102
  11. #define IDC_SQL_LOG_SET_EDIT 2103
  12. #define IDC_SQL_SIZE_MAX_BTN 2104
  13. #define IDC_SQL_SIZE_LIMIT_EDIT 2105
  14. #define IDC_SQL_SIZE_LIMIT_BTN 2106
  15. #define IDC_SQL_SIZE_LIMIT_SPIN 2107
  16. #define IDC_SQL_SIZE_LIMIT_UNITS 2108
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CSqlProp dialog
  19. class CSqlProp : public CDialog
  20. {
  21. public:
  22. // Construction
  23. CSqlProp(CWnd* pParent = NULL); // standard constructor
  24. virtual ~CSqlProp(){};
  25. DWORD SetContextHelpFilePath(const CString & rstrPath);
  26. //{{AFX_DATA(CSqlProp)
  27. enum { IDD = IDD_SQL_PROP };
  28. CComboBox m_comboDSN;
  29. CString m_strDSN;
  30. CString m_strLogSetName;
  31. DWORD m_dwSerialNumber;
  32. DWORD m_dwMaxSize;
  33. int m_nSqlSizeRdo;
  34. //}}AFX_DATA
  35. UINT m_dwMaxSizeInternal;
  36. CString m_SqlFormattedLogName;
  37. BOOL m_bAutoNameSuffix;
  38. DWORD m_dwLogFileTypeValue;
  39. HINSTANCE m_hModule;
  40. DWORD m_dwFocusControl;
  41. CSmLogQuery* m_pLogQuery;
  42. // Overrides
  43. // ClassWizard generated virtual function overrides
  44. //{{AFX_VIRTUAL(CSqlProp)
  45. protected:
  46. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  47. //}}AFX_VIRTUAL
  48. // Implementation
  49. protected:
  50. // Generated message map functions
  51. //{{AFX_MSG(CSqlProp)
  52. virtual void OnOK();
  53. afx_msg void OnKillfocusSqlLogSetEdit();
  54. afx_msg void OnChangeSqlLogSetEdit();
  55. afx_msg void OnChangeSqlSizeLimitEdit();
  56. afx_msg void OnDeltaposSqlSizeLimitSpin(NMHDR* pNMHDR, LRESULT* pResult);
  57. afx_msg void OnSqlSizeMaxBtn();
  58. afx_msg void OnSqlSizeLimitBtn();
  59. afx_msg void OnKillfocusSqlSizeLimitEdit();
  60. afx_msg BOOL OnHelpInfo(HELPINFO *);
  61. afx_msg void OnContextMenu( CWnd*, CPoint );
  62. virtual BOOL OnInitDialog();
  63. //}}AFX_MSG
  64. DECLARE_MESSAGE_MAP()
  65. private:
  66. BOOL IsValidLocalData();
  67. void FileSizeBtn(BOOL bInit);
  68. void FileSizeBtnEnable();
  69. void OnDeltaposSpin(NMHDR *pNMHDR, LRESULT *pResult, DWORD *pValue, DWORD dMinValue, DWORD dMaxValue);
  70. LPWSTR InitDSNCombo();
  71. CString ComposeSQLLogName();
  72. void ValidateTextEdit(CDataExchange * pDX,
  73. int nIDC,
  74. int nMaxChars,
  75. DWORD * value,
  76. DWORD minValue,
  77. DWORD maxValue);
  78. BOOL ValidateDWordInterval(int nIDC,
  79. LPCWSTR strLogName,
  80. DWORD dwValue,
  81. DWORD minValue,
  82. DWORD maxValue);
  83. CString m_strHelpFilePath;
  84. };
  85. //{{AFX_INSERT_LOCATION}}
  86. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  87. #endif // !defined(AFX_SQLPROP_H__BADE97DF_A969_435A_A348_C9A18F9CE035__INCLUDED_)