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.

147 lines
4.0 KiB

  1. //******************************************************************
  2. // trapdlg.h
  3. //
  4. // This is the header file for the main dialog for eventrap.
  5. //
  6. // Author: Larry A. French
  7. //
  8. // History:
  9. // December-1995 SEA - Wrote it
  10. // SEA - wrote it.
  11. //
  12. // 20-Febuary-1996 Larry A. French
  13. // Totally rewrote it to fix the spagetti code and huge
  14. // methods. The original author seemed to have little or
  15. // no ability to form meaningful abstractions.
  16. //
  17. //
  18. // Copyright (C) 1995, 1996 Microsoft Corporation. All rights reserved.
  19. //******************************************************************
  20. #ifndef TRAPDLG_H
  21. #define TRAPDLG_H
  22. #include "regkey.h"
  23. #include "source.h" // The message source container
  24. #include "tcsource.h" // The message source tree control
  25. #include "lcsource.h" // The message source list control
  26. #include "lcevents.h"
  27. #include "trapreg.h"
  28. #include "layout.h"
  29. #include "export.h"
  30. class CMainLayout;
  31. class CExtendedLayout;
  32. /////////////////////////////////////////////////////////////////////////////
  33. // CEventTrapDlg dialog
  34. class CEventTrapDlg : public CDialog
  35. {
  36. // Construction
  37. public:
  38. CEventTrapDlg(CWnd* pParent = NULL); // standard constructor
  39. ~CEventTrapDlg();
  40. BOOL IsExtendedView() {return m_bExtendedView; }
  41. void NotifySourceSelChanged();
  42. CSource m_source; // The message source
  43. // Dialog Data
  44. //{{AFX_DATA(CEventTrapDlg)
  45. enum { IDD = IDD_EVNTTRAPDLG };
  46. CButton m_btnApply;
  47. CButton m_btnExport;
  48. CLcEvents m_lcEvents;
  49. CTcSource m_tcSource;
  50. CStatic m_statLabel0;
  51. CStatic m_statLabel1;
  52. CStatic m_statLabel2;
  53. CLcSource m_lcSource;
  54. CButton m_btnOK;
  55. CButton m_btnCancel;
  56. CButton m_btnSettings;
  57. CButton m_btnProps;
  58. CButton m_btnView;
  59. CButton m_btnRemove;
  60. CButton m_btnAdd;
  61. CButton m_btnFind;
  62. CButton m_btnConfigTypeBox;
  63. CButton m_btnConfigTypeCustom;
  64. CButton m_btnConfigTypeDefault;
  65. //}}AFX_DATA
  66. // Overrides
  67. // ClassWizard generated virtual function overrides
  68. //{{AFX_VIRTUAL(CEventTrapDlg)
  69. protected:
  70. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  71. //}}AFX_VIRTUAL
  72. // Implementation
  73. protected:
  74. // Generated message map functions
  75. //{{AFX_MSG(CEventTrapDlg)
  76. virtual BOOL OnInitDialog();
  77. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  78. afx_msg void OnDestroy();
  79. afx_msg void OnPaint();
  80. afx_msg HCURSOR OnQueryDragIcon();
  81. afx_msg void OnAdd();
  82. afx_msg void OnProperties();
  83. afx_msg void OnSettings();
  84. virtual void OnOK();
  85. afx_msg void OnDblclkEventlist(NMHDR* pNMHDR, LRESULT* pResult);
  86. afx_msg void OnColumnclickEventlist(NMHDR* pNMHDR, LRESULT* pResult);
  87. afx_msg void OnSize(UINT nType, int cx, int cy);
  88. afx_msg void OnView();
  89. afx_msg void OnRemove();
  90. afx_msg void OnFind();
  91. afx_msg void OnSelchangedTvSources(NMHDR* pNMHDR, LRESULT* pResult);
  92. afx_msg void OnColumnclickLvSources(NMHDR* pNMHDR, LRESULT* pResult);
  93. afx_msg void OnDblclkLvSources(NMHDR* pNMHDR, LRESULT* pResult);
  94. afx_msg void OnButtonExport();
  95. virtual void OnCancel();
  96. afx_msg void OnKeydownEventlist(NMHDR* pNMHDR, LRESULT* pResult);
  97. afx_msg void OnItemchangedEventlist(NMHDR* pNMHDR, LRESULT* pResult);
  98. afx_msg void OnItemchangedLvSources(NMHDR* pNMHDR, LRESULT* pResult);
  99. afx_msg void OnRadioCustom();
  100. afx_msg void OnRadioDefault();
  101. afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
  102. afx_msg BOOL OnHelpInfo(HELPINFO*);
  103. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  104. afx_msg void OnApply();
  105. afx_msg void OnDefault();
  106. afx_msg void OnTvSourcesExpanded(NMHDR* pNMHDR, LRESULT* pResult);
  107. //}}AFX_MSG
  108. DECLARE_MESSAGE_MAP()
  109. protected:
  110. HICON m_hIcon;
  111. private:
  112. void CheckEventlistSelection();
  113. void CheckSourcelistSelection();
  114. void UpdateDialogTitle();
  115. BOOL m_bSaveInProgress;
  116. BOOL m_bExtendedView;
  117. CLayout m_layout;
  118. CString m_sExportTitle;
  119. CDlgExport m_dlgExport;
  120. CString m_sBaseDialogCaption;
  121. };
  122. #endif //TRAPDLG_H
  123.