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.

82 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1994-95 Microsoft Corporation
  3. Module Name:
  4. mapobj.h
  5. Abstract:
  6. Mapping object implementation.
  7. Author:
  8. Don Ryan (donryan) 04-Jan-1995
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #ifndef _MAPOBJ_H_
  14. #define _MAPOBJ_H_
  15. class CMapping : public CCmdTarget
  16. {
  17. DECLARE_DYNCREATE(CMapping)
  18. private:
  19. CCmdTarget* m_pParent;
  20. CObArray m_userArray;
  21. BOOL m_bUsersRefreshed;
  22. public:
  23. CString m_strName;
  24. CString m_strDescription;
  25. long m_lInUse;
  26. CUsers* m_pUsers;
  27. public:
  28. CMapping(
  29. CCmdTarget* pParent = NULL,
  30. LPCTSTR pName = NULL,
  31. long lInUse = 0L,
  32. LPCTSTR pDecription = NULL
  33. );
  34. virtual ~CMapping();
  35. BOOL Refresh();
  36. BOOL RefreshUsers();
  37. void ResetUsers();
  38. // ClassWizard generated virtual function overrides
  39. //{{AFX_VIRTUAL(CMapping)
  40. public:
  41. virtual void OnFinalRelease();
  42. //}}AFX_VIRTUAL
  43. // Generated OLE dispatch map functions
  44. //{{AFX_DISPATCH(CMapping)
  45. afx_msg LPDISPATCH GetApplication();
  46. afx_msg LPDISPATCH GetParent();
  47. afx_msg BSTR GetDescription();
  48. afx_msg long GetInUse();
  49. afx_msg BSTR GetName();
  50. afx_msg LPDISPATCH GetUsers(const VARIANT FAR& index);
  51. //}}AFX_DISPATCH
  52. DECLARE_DISPATCH_MAP()
  53. protected:
  54. // Generated message map functions
  55. //{{AFX_MSG(CMapping)
  56. // NOTE - the ClassWizard will add and remove member functions here.
  57. //}}AFX_MSG
  58. DECLARE_MESSAGE_MAP()
  59. };
  60. #endif // _MAPOBJ_H_