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.

155 lines
3.1 KiB

  1. // evntprop.h : header file
  2. //
  3. #ifndef EVNTPROP_H
  4. #define EVNTPROP_H
  5. class CXEventArray;
  6. class CXEvent;
  7. /////////////////////////////////////////////////////////////////////////////
  8. // CEditField window
  9. class CEditField : public CEdit
  10. {
  11. // Construction
  12. public:
  13. CEditField();
  14. SCODE CEditField::GetValue(int& iValue);
  15. // Attributes
  16. public:
  17. // Operations
  18. public:
  19. BOOL IsDirty() {return m_bIsDirty; }
  20. void ClearDirty() {m_bIsDirty = FALSE; }
  21. // Overrides
  22. // ClassWizard generated virtual function overrides
  23. //{{AFX_VIRTUAL(CEditField)
  24. //}}AFX_VIRTUAL
  25. // Implementation
  26. public:
  27. virtual ~CEditField();
  28. // Generated message map functions
  29. protected:
  30. //{{AFX_MSG(CEditField)
  31. afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
  32. //}}AFX_MSG
  33. DECLARE_MESSAGE_MAP()
  34. private:
  35. BOOL m_bIsDirty;
  36. };
  37. /////////////////////////////////////////////////////////////////////////////
  38. /////////////////////////////////////////////////////////////////////////////
  39. // CEditSpin window
  40. class CEditSpin : public CSpinButtonCtrl
  41. {
  42. // Construction
  43. public:
  44. CEditSpin();
  45. // Attributes
  46. public:
  47. int SetPos(int iPos);
  48. void SetRange(int nLower, int nUpper);
  49. BOOL IsDirty();
  50. void ClearDirty() {m_bIsDirty = FALSE; }
  51. // Operations
  52. public:
  53. // Overrides
  54. // ClassWizard generated virtual function overrides
  55. //{{AFX_VIRTUAL(CEditSpin)
  56. //}}AFX_VIRTUAL
  57. // Implementation
  58. public:
  59. virtual ~CEditSpin();
  60. // Generated message map functions
  61. protected:
  62. //{{AFX_MSG(CEditSpin)
  63. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  64. //}}AFX_MSG
  65. DECLARE_MESSAGE_MAP()
  66. private:
  67. BOOL m_bIsDirty;
  68. int m_iSetPos;
  69. };
  70. /////////////////////////////////////////////////////////////////////////////
  71. // CEventPropertiesDlg dialog
  72. class CEventPropertiesDlg : public CDialog
  73. {
  74. // Construction
  75. public:
  76. CEventPropertiesDlg(CWnd* pParent = NULL); // standard constructor
  77. BOOL EditEventProperties(CXEventArray& aEvents);
  78. // Dialog Data
  79. //{{AFX_DATA(CEventPropertiesDlg)
  80. enum { IDD = IDD_PROPERTIESDLG };
  81. CButton m_btnWithinTime;
  82. CEditSpin m_spinEventCount;
  83. CEditSpin m_spinTimeInterval;
  84. CEditField m_edtTimeInterval;
  85. CEditField m_edtEventCount;
  86. CButton m_btnOK;
  87. CString m_sDescription;
  88. CString m_sSource;
  89. CString m_sEventId;
  90. CString m_sLog;
  91. CString m_sSourceOID;
  92. CString m_sFullEventID;
  93. //}}AFX_DATA
  94. // Overrides
  95. // ClassWizard generated virtual function overrides
  96. //{{AFX_VIRTUAL(CEventPropertiesDlg)
  97. protected:
  98. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  99. //}}AFX_VIRTUAL
  100. // Implementation
  101. protected:
  102. // Generated message map functions
  103. //{{AFX_MSG(CEventPropertiesDlg)
  104. virtual void OnOK();
  105. afx_msg void OnWithintime();
  106. virtual BOOL OnInitDialog();
  107. afx_msg BOOL OnHelpInfo(HELPINFO*);
  108. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  109. //}}AFX_MSG
  110. DECLARE_MESSAGE_MAP()
  111. private:
  112. void MakeLabelsBold();
  113. CXEvent* m_pEvent;
  114. BOOL m_bDidEditEventCount;
  115. BOOL m_bDidFlipEventCount;
  116. int m_iEventCount;
  117. int m_iTimeInterval;
  118. };
  119. #endif // EVNTPROP_H
  120. /////////////////////////////////////////////////////////////////////////////