Leaked source code of windows server 2003
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.

113 lines
3.4 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. #define IDC_SQL_DSN_EDIT 2109
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CSqlProp dialog
  20. class CSqlProp : public CDialog
  21. {
  22. public:
  23. // Construction
  24. CSqlProp(CWnd* pParent = NULL); // standard constructor
  25. virtual ~CSqlProp(){};
  26. DWORD SetContextHelpFilePath(const CString & rstrPath);
  27. //{{AFX_DATA(CSqlProp)
  28. enum { IDD = IDD_SQL_PROP };
  29. CComboBox m_comboDSN;
  30. CEdit m_editDSN;
  31. CString m_strDSN;
  32. CString m_strLogSetName;
  33. DWORD m_dwSerialNumber;
  34. DWORD m_dwMaxSize;
  35. int m_nSqlSizeRdo;
  36. //}}AFX_DATA
  37. UINT m_dwMaxSizeInternal;
  38. CString m_SqlFormattedLogName;
  39. BOOL m_bAutoNameSuffix;
  40. DWORD m_dwLogFileTypeValue;
  41. HINSTANCE m_hModule;
  42. DWORD m_dwFocusControl;
  43. CSmLogQuery* m_pLogQuery;
  44. // Overrides
  45. // ClassWizard generated virtual function overrides
  46. //{{AFX_VIRTUAL(CSqlProp)
  47. protected:
  48. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  49. //}}AFX_VIRTUAL
  50. // Implementation
  51. protected:
  52. // Generated message map functions
  53. //{{AFX_MSG(CSqlProp)
  54. virtual void OnOK();
  55. afx_msg void OnKillfocusSqlLogSetEdit();
  56. afx_msg void OnChangeSqlLogSetEdit();
  57. afx_msg void OnChangeSqlSizeLimitEdit();
  58. afx_msg void OnDeltaposSqlSizeLimitSpin(NMHDR* pNMHDR, LRESULT* pResult);
  59. afx_msg void OnSqlSizeMaxBtn();
  60. afx_msg void OnSqlSizeLimitBtn();
  61. afx_msg void OnKillfocusSqlSizeLimitEdit();
  62. afx_msg BOOL OnHelpInfo(HELPINFO *);
  63. afx_msg void OnContextMenu( CWnd*, CPoint );
  64. virtual BOOL OnInitDialog();
  65. //}}AFX_MSG
  66. DECLARE_MESSAGE_MAP()
  67. private:
  68. BOOL IsValidLocalData();
  69. void FileSizeBtn(BOOL bInit);
  70. void FileSizeBtnEnable();
  71. void OnDeltaposSpin(NMHDR *pNMHDR, LRESULT *pResult, DWORD *pValue, DWORD dMinValue, DWORD dMaxValue);
  72. LPWSTR InitDSN();
  73. CString ComposeSQLLogName();
  74. void ValidateTextEdit(CDataExchange * pDX,
  75. int nIDC,
  76. int nMaxChars,
  77. DWORD * value,
  78. DWORD minValue,
  79. DWORD maxValue);
  80. BOOL ValidateDWordInterval(int nIDC,
  81. LPCWSTR strLogName,
  82. DWORD dwValue,
  83. DWORD minValue,
  84. DWORD maxValue);
  85. BOOL IsValidDSN(CString& strDSN);
  86. CString m_strHelpFilePath;
  87. };
  88. //{{AFX_INSERT_LOCATION}}
  89. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  90. #endif // !defined(AFX_SQLPROP_H__BADE97DF_A969_435A_A348_C9A18F9CE035__INCLUDED_)