Rollback from r3608 to r3606
[public/netxms.git] / src / console / win32 / CreateMPDlg.h
1 #if !defined(AFX_CREATEMPDLG_H__95DE362E_813B_45AE_B3EA_95B9409C34B4__INCLUDED_)
2 #define AFX_CREATEMPDLG_H__95DE362E_813B_45AE_B3EA_95B9409C34B4__INCLUDED_
3
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // CreateMPDlg.h : header file
8 //
9
10 /////////////////////////////////////////////////////////////////////////////
11 // CCreateMPDlg dialog
12
13 class CCreateMPDlg : public CDialog
14 {
15 // Construction
16 public:
17 DWORD * m_pdwTemplateList;
18 DWORD * m_pdwTrapList;
19 DWORD * m_pdwEventList;
20 DWORD m_dwNumTraps;
21 DWORD m_dwNumTemplates;
22 DWORD m_dwNumEvents;
23 CCreateMPDlg(CWnd* pParent = NULL); // standard constructor
24 ~CCreateMPDlg();
25
26 // Dialog Data
27 //{{AFX_DATA(CCreateMPDlg)
28 enum { IDD = IDD_CREATE_MP };
29 CTreeCtrl m_wndTreeCtrl;
30 CString m_strDescription;
31 CString m_strFile;
32 //}}AFX_DATA
33
34
35 // Overrides
36 // ClassWizard generated virtual function overrides
37 //{{AFX_VIRTUAL(CCreateMPDlg)
38 protected:
39 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
40 //}}AFX_VIRTUAL
41
42 // Implementation
43 protected:
44 void AddTrap(DWORD dwId, DWORD dwEvent, TCHAR *pszName);
45 NXC_TRAP_CFG_ENTRY *m_pTrapCfg;
46 DWORD m_dwTrapCfgSize;
47 void CreateList(HTREEITEM hRoot, DWORD *pdwCount, DWORD **ppdwList);
48 void AddTemplate(DWORD dwId);
49 void AddEvent(DWORD dwId);
50 HTREEITEM m_hTrapRoot;
51 HTREEITEM m_hTemplateRoot;
52 HTREEITEM m_hEventRoot;
53 CImageList m_imageList;
54
55 // Generated message map functions
56 //{{AFX_MSG(CCreateMPDlg)
57 virtual BOOL OnInitDialog();
58 afx_msg void OnButtonAddEvent();
59 afx_msg void OnButtonAddTemplate();
60 afx_msg void OnButtonDelete();
61 virtual void OnOK();
62 afx_msg void OnButtonAddTrap();
63 afx_msg void OnButtonBrowse();
64 //}}AFX_MSG
65 DECLARE_MESSAGE_MAP()
66 };
67
68 //{{AFX_INSERT_LOCATION}}
69 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
70
71 #endif // !defined(AFX_CREATEMPDLG_H__95DE362E_813B_45AE_B3EA_95B9409C34B4__INCLUDED_)