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.

86 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1994-95 Microsoft Corporation
  3. Module Name:
  4. ausrdlg.h
  5. Abstract:
  6. Add user dialog implementation.
  7. Author:
  8. Don Ryan (donryan) 14-Feb-1995
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #ifndef _AUSRDLG_H_
  14. #define _AUSRDLG_H_
  15. class CAddUsersDialog : public CDialog
  16. {
  17. private:
  18. CObList* m_pObList;
  19. BOOL m_bIsDomainListExpanded;
  20. BOOL m_bIsFocusUserList;
  21. BOOL m_bIsFocusAddedList;
  22. public:
  23. CAddUsersDialog(CWnd* pParent = NULL);
  24. void InitUserList();
  25. void InitDomainList();
  26. BOOL InsertDomains(CDomains* pDomains);
  27. BOOL RefreshUserList();
  28. void InitDialog(CObList* pObList);
  29. void InitDialogCtrls();
  30. //{{AFX_DATA(CAddUsersDialog)
  31. enum { IDD = IDD_ADD_USERS };
  32. CButton m_addBtn;
  33. CButton m_delBtn;
  34. CComboBox m_domainList;
  35. CListCtrl m_addedList;
  36. CListCtrl m_userList;
  37. int m_iDomain;
  38. int m_iIndex;
  39. //}}AFX_DATA
  40. //{{AFX_VIRTUAL(CAddUsersDialog)
  41. protected:
  42. virtual void DoDataExchange(CDataExchange* pDX);
  43. virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  44. //}}AFX_VIRTUAL
  45. protected:
  46. //{{AFX_MSG(CAddUsersDialog)
  47. virtual BOOL OnInitDialog();
  48. afx_msg void OnDropdownDomains();
  49. afx_msg void OnAdd();
  50. afx_msg void OnDelete();
  51. afx_msg void OnDblclkAddUsers(NMHDR* pNMHDR, LRESULT* pResult);
  52. afx_msg void OnDblclkUsers(NMHDR* pNMHDR, LRESULT* pResult);
  53. afx_msg void OnSelchangeDomains();
  54. virtual void OnOK();
  55. virtual void OnCancel();
  56. afx_msg void OnGetdispinfoUsers(NMHDR* pNMHDR, LRESULT* pResult);
  57. afx_msg void OnKillfocusUsers(NMHDR* pNMHDR, LRESULT* pResult);
  58. afx_msg void OnSetfocusUsers(NMHDR* pNMHDR, LRESULT* pResult);
  59. afx_msg void OnKillfocusAddUsers(NMHDR* pNMHDR, LRESULT* pResult);
  60. afx_msg void OnSetfocusAddUsers(NMHDR* pNMHDR, LRESULT* pResult);
  61. //}}AFX_MSG
  62. DECLARE_MESSAGE_MAP()
  63. };
  64. #endif // _AUSRDLG_H_