f4014d6c9076b8e80417237ee7aa2e3371f3e89e
[public/netxms.git] / src / console / win32 / UserEditor.h
1 #if !defined(AFX_USEREDITOR_H__2D1C5AB7_A0ED_467D_A1F3_9ECACE44EE95__INCLUDED_)
2 #define AFX_USEREDITOR_H__2D1C5AB7_A0ED_467D_A1F3_9ECACE44EE95__INCLUDED_
3
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // UserEditor.h : header file
8 //
9
10 #include "NewUserDlg.h"
11 #include "UserPropDlg.h"
12 #include "GroupPropDlg.h"
13 #include "PasswordChangeDlg.h"
14
15
16 /////////////////////////////////////////////////////////////////////////////
17 // CUserEditor frame
18
19 class CUserEditor : public CMDIChildWnd
20 {
21 DECLARE_DYNCREATE(CUserEditor)
22 protected:
23 CUserEditor(); // protected constructor used by dynamic creation
24
25 // Attributes
26 public:
27
28 // Operations
29 public:
30 void CreateUserObject(const TCHAR *pszName, BOOL bIsGroup, BOOL bShowProp);
31
32 // Overrides
33 // ClassWizard generated virtual function overrides
34 //{{AFX_VIRTUAL(CUserEditor)
35 protected:
36 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
37 //}}AFX_VIRTUAL
38
39 // Implementation
40 protected:
41 DWORD m_dwCurrentUser;
42 CListCtrl m_wndListCtrl;
43 virtual ~CUserEditor();
44
45 // Generated message map functions
46 //{{AFX_MSG(CUserEditor)
47 afx_msg void OnClose();
48 afx_msg void OnDestroy();
49 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
50 afx_msg void OnSize(UINT nType, int cx, int cy);
51 afx_msg void OnViewRefresh();
52 afx_msg void OnUserCreateGroup();
53 afx_msg void OnUserCreateUser();
54 afx_msg void OnSetFocus(CWnd* pOldWnd);
55 afx_msg void OnUserProperties();
56 afx_msg void OnUserDelete();
57 afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
58 afx_msg void OnUpdateUserProperties(CCmdUI* pCmdUI);
59 afx_msg void OnUpdateUserDelete(CCmdUI* pCmdUI);
60 afx_msg void OnUserSetpassword();
61 afx_msg void OnUpdateUserSetpassword(CCmdUI* pCmdUI);
62 //}}AFX_MSG
63 afx_msg void OnUserDBChange(int iCode, NXC_USER *pUserInfo);
64 afx_msg void OnListViewDblClk(LPNMITEMACTIVATE pNMHDR, LRESULT *pResult);
65 afx_msg void OnListViewItemChange(LPNMLISTVIEW pNMHDR, LRESULT *pResult);
66 DECLARE_MESSAGE_MAP()
67 private:
68 int AddListItem(NXC_USER *pUser);
69 };
70
71 /////////////////////////////////////////////////////////////////////////////
72
73 //{{AFX_INSERT_LOCATION}}
74 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
75
76 #endif // !defined(AFX_USEREDITOR_H__2D1C5AB7_A0ED_467D_A1F3_9ECACE44EE95__INCLUDED_)