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
2.0 KiB

  1. /*++
  2. Copyright (c) 1994-95 Microsoft Corporation
  3. Module Name:
  4. mapppgs.cpp
  5. Abstract:
  6. Mapping property page (settings) implementation.
  7. Author:
  8. Don Ryan (donryan) 02-Feb-1995
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #ifndef _MAPPPGS_H_
  14. #define _MAPPPGS_H_
  15. class CMappingPropertyPageSettings : public CPropertyPage
  16. {
  17. DECLARE_DYNCREATE(CMappingPropertyPageSettings)
  18. private:
  19. CMapping* m_pMapping;
  20. CObList m_deleteList;
  21. DWORD* m_pUpdateHint;
  22. BOOL m_bAreCtrlsInitialized;
  23. public:
  24. CMappingPropertyPageSettings();
  25. ~CMappingPropertyPageSettings();
  26. void InitPage(CMapping* pMapping, DWORD* pUpdateHint);
  27. void AbortPageIfNecessary();
  28. void AbortPage();
  29. void InitCtrls();
  30. BOOL RefreshCtrls();
  31. BOOL IsQuantityValid();
  32. //{{AFX_DATA(CMappingPropertyPageSettings)
  33. enum { IDD = IDD_PP_MAPPING_SETTINGS };
  34. CEdit m_desEdit;
  35. CEdit m_licEdit;
  36. CButton m_delBtn;
  37. CButton m_addBtn;
  38. CSpinButtonCtrl m_spinCtrl;
  39. CListCtrl m_userList;
  40. CString m_strDescription;
  41. long m_nLicenses;
  42. long m_nLicensesMin;
  43. CString m_strName;
  44. //}}AFX_DATA
  45. //{{AFX_VIRTUAL(CMappingPropertyPageSettings)
  46. protected:
  47. virtual void DoDataExchange(CDataExchange* pDX);
  48. virtual BOOL OnSetActive();
  49. virtual BOOL OnKillActive();
  50. virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  51. //}}AFX_VIRTUAL
  52. protected:
  53. //{{AFX_MSG(CMappingPropertyPageSettings)
  54. virtual BOOL OnInitDialog();
  55. afx_msg void OnAdd();
  56. afx_msg void OnDelete();
  57. afx_msg void OnDeltaPosSpin(NMHDR* pNMHDR, LRESULT* pResult);
  58. afx_msg void OnGetDispInfoUsers(NMHDR* pNMHDR, LRESULT* pResult);
  59. afx_msg void OnUpdateQuantity();
  60. afx_msg void OnDestroy();
  61. //}}AFX_MSG
  62. DECLARE_MESSAGE_MAP()
  63. };
  64. extern int CALLBACK CompareUsersInMapping(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
  65. #endif // _MAPPPGS_H_