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.

87 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1994-95 Microsoft Corporation
  3. Module Name:
  4. nmapdlg.cpp
  5. Abstract:
  6. New mapping dialog implementation.
  7. Author:
  8. Don Ryan (donryan) 02-Feb-1995
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #ifndef _NMAPDLG_H_
  14. #define _NMAPDLG_H_
  15. class CNewMappingDialog : public CDialog
  16. {
  17. private:
  18. BOOL m_bAreCtrlsInitialized;
  19. public:
  20. DWORD m_fUpdateHint;
  21. public:
  22. CNewMappingDialog(CWnd* pParent = NULL);
  23. void AbortDialogIfNecessary();
  24. void AbortDialog();
  25. void InitCtrls();
  26. BOOL IsQuantityValid();
  27. //{{AFX_DATA(CNewMappingDialog)
  28. enum { IDD = IDD_NEW_MAPPING };
  29. CEdit m_desEdit;
  30. CButton m_addBtn;
  31. CButton m_delBtn;
  32. CSpinButtonCtrl m_spinCtrl;
  33. CListCtrl m_userList;
  34. CEdit m_userEdit;
  35. CEdit m_licEdit;
  36. CString m_strDescription;
  37. CString m_strName;
  38. long m_nLicenses;
  39. long m_nLicensesMin;
  40. //}}AFX_DATA
  41. //{{AFX_VIRTUAL(CNewMappingDialog)
  42. protected:
  43. virtual void DoDataExchange(CDataExchange* pDX);
  44. virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  45. //}}AFX_VIRTUAL
  46. protected:
  47. //{{AFX_MSG(CNewMappingDialog)
  48. afx_msg void OnAdd();
  49. virtual BOOL OnInitDialog();
  50. virtual void OnOK();
  51. afx_msg void OnDelete();
  52. afx_msg void OnSetFocusUsers(NMHDR* pNMHDR, LRESULT* pResult);
  53. afx_msg void OnKillFocusUsers(NMHDR* pNMHDR, LRESULT* pResult);
  54. afx_msg void OnDeltaPosSpin(NMHDR* pNMHDR, LRESULT* pResult);
  55. afx_msg void OnUpdateQuantity();
  56. afx_msg void OnDestroy();
  57. //}}AFX_MSG
  58. DECLARE_MESSAGE_MAP()
  59. };
  60. int CALLBACK CompareUsersInMapping(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
  61. #endif // _NMAPDLG_H_