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.

112 lines
3.4 KiB

  1. /*******************************************************************************
  2. *
  3. * apptree.h
  4. *
  5. * - declarations for the CAppTreeView class
  6. * - the CAppTreeView class lives in the left pane of the mainframe's splitter
  7. * - derived from CBaseTreeView
  8. *
  9. * copyright notice: Copyright 1997, Citrix Systems Inc.
  10. * Copyright (c) 1998 - 1999 Microsoft Corporation
  11. *
  12. * $Author: donm $ Don Messerli
  13. *
  14. * $Log: N:\nt\private\utils\citrix\winutils\tsadmin\VCS\apptree.h $
  15. *
  16. * Rev 1.1 16 Feb 1998 16:00:22 donm
  17. * modifications to support pICAsso extension
  18. *
  19. * Rev 1.0 13 Oct 1997 22:32:52 donm
  20. * Initial revision.
  21. *
  22. *******************************************************************************/
  23. #ifndef _APPTREE_H
  24. #define _APPTREE_H
  25. #include "afxcview.h"
  26. #include "basetree.h"
  27. ///////////////////////
  28. // CLASS: CAppTreeView
  29. //
  30. class CAppTreeView : public CBaseTreeView
  31. {
  32. friend class CTreeTabCtrl;
  33. friend class CLeftPane;
  34. protected:
  35. CAppTreeView(); // protected constructor used by dynamic creation
  36. DECLARE_DYNCREATE(CAppTreeView)
  37. // Attributes
  38. protected:
  39. int m_idxApps; // index of Apps icon image
  40. int m_idxGenericApp; // index of Generic Application icon image
  41. int m_idxServer; // index of Server icon image
  42. int m_idxNotSign; // index of Not Sign overlay (for non-sane servers)
  43. int m_idxQuestion; // index of Question Mark overlay (for non-opened servers)
  44. int m_idxUser; // index of User icon image
  45. int m_idxCurrentServer; // index of Current Server image
  46. int m_idxCurrentUser; // index of Current User image
  47. int m_idxServerNotConnected; // index of Server Not Connected image
  48. // Operations
  49. public:
  50. protected:
  51. int DetermineServerIcon(CServer *pServer);
  52. private:
  53. // Builds the image list
  54. virtual void BuildImageList();
  55. // Add the Users attached to a particular Server running that app
  56. void AddServerChildren(HTREEITEM hServer, CServer *pServer);
  57. // Adds a single user to the tree
  58. HTREEITEM AddUser(CWinStation *pWinStation);
  59. // Add the Servers configured for a published app
  60. // void AddApplicationServers(HTREEITEM hApplication, CPublishedApp *pPublishedApp);
  61. // Overrides
  62. // ClassWizard generated virtual function overrides
  63. //{{AFX_VIRTUAL(CAppTreeView)
  64. public:
  65. // virtual void OnInitialUpdate();
  66. protected:
  67. // virtual void OnDraw(CDC* pDC); // overridden to draw this view
  68. // virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  69. //}}AFX_VIRTUAL
  70. // Implementation
  71. protected:
  72. virtual ~CAppTreeView();
  73. #ifdef _DEBUG
  74. virtual void AssertValid() const;
  75. virtual void Dump(CDumpContext& dc) const;
  76. #endif
  77. // Generated message map functions
  78. protected:
  79. //{{AFX_MSG(CAppTreeView)
  80. afx_msg LRESULT OnExtAddApplication(WPARAM, LPARAM);
  81. afx_msg LRESULT OnExtRemoveApplication(WPARAM, LPARAM);
  82. afx_msg LRESULT OnExtAppChanged(WPARAM, LPARAM);
  83. afx_msg LRESULT OnExtAddAppServer(WPARAM, LPARAM);
  84. afx_msg LRESULT OnExtRemoveAppServer(WPARAM, LPARAM);
  85. afx_msg LRESULT OnAdminViewsReady(WPARAM, LPARAM);
  86. afx_msg LRESULT OnAdminUpdateServer(WPARAM, LPARAM);
  87. afx_msg LRESULT OnAdminUpdateWinStation(WPARAM, LPARAM);
  88. afx_msg LRESULT OnAdminAddWinStation(WPARAM, LPARAM);
  89. afx_msg LRESULT OnAdminRemoveWinStation(WPARAM, LPARAM);
  90. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  91. afx_msg void OnRClick(NMHDR* pNMHDR, LRESULT* pResult);
  92. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  93. //}}AFX_MSG
  94. DECLARE_MESSAGE_MAP()
  95. }; // end class CAppTreeView
  96. #endif // _APPTREE_H