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.

97 lines
2.4 KiB

  1. /*******************************************************************************
  2. *
  3. * appview.h
  4. *
  5. * declarations for the CApplicationView class
  6. *
  7. * copyright notice: Copyright 1997, Citrix Systems Inc.
  8. * Copyright (c) 1998 - 1999 Microsoft Corporation
  9. *
  10. * $Author: donm $ Don Messerli
  11. *
  12. * $Log: N:\nt\private\utils\citrix\winutils\tsadmin\VCS\appview.h $
  13. *
  14. * Rev 1.2 16 Feb 1998 16:00:28 donm
  15. * modifications to support pICAsso extension
  16. *
  17. * Rev 1.1 22 Oct 1997 21:06:58 donm
  18. * update
  19. *
  20. * Rev 1.0 16 Oct 1997 14:00:08 donm
  21. * Initial revision.
  22. *
  23. *******************************************************************************/
  24. #ifndef _APPLICATIONVIEW_H
  25. #define _APPLICATIONVIEW_H
  26. #include "apppgs.h"
  27. const int NUMBER_OF_APP_PAGES = 3;
  28. ////////////////////
  29. // CLASS: CApplicationView
  30. //
  31. class CApplicationView : public CAdminView
  32. {
  33. friend class CRightPane;
  34. friend class CAdminPage;
  35. private:
  36. CTabCtrl* m_pTabs;
  37. CFont* m_pTabFont;
  38. int m_CurrPage;
  39. CPublishedApp *m_pApplication;
  40. protected:
  41. CApplicationView(); // protected constructor used by dynamic creation
  42. DECLARE_DYNCREATE(CApplicationView)
  43. // Attributes
  44. public:
  45. protected:
  46. static PageDef pages[NUMBER_OF_APP_PAGES];
  47. // Operations
  48. protected:
  49. void Reset(void *pApplication);
  50. void AddTab(int index, TCHAR* text);
  51. // Overrides
  52. // ClassWizard generated virtual function overrides
  53. //{{AFX_VIRTUAL(CApplicationView)
  54. public:
  55. virtual void OnInitialUpdate();
  56. protected:
  57. virtual void OnDraw(CDC* pDC); // overridden to draw this view
  58. //}}AFX_VIRTUAL
  59. // Implementation
  60. protected:
  61. virtual ~CApplicationView();
  62. #ifdef _DEBUG
  63. virtual void AssertValid() const;
  64. virtual void Dump(CDumpContext& dc) const;
  65. #endif
  66. // Generated message map functions
  67. protected:
  68. //{{AFX_MSG(CApplicationView)
  69. afx_msg void OnSize(UINT nType, int cx, int cy);
  70. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  71. afx_msg LRESULT OnChangePage(WPARAM wParam, LPARAM lParam);
  72. afx_msg void OnTabSelChange(NMHDR* pNMHDR, LRESULT* pResult);
  73. afx_msg LRESULT OnAdminUpdateWinStations(WPARAM, LPARAM);
  74. afx_msg LRESULT OnAdminUpdateServerInfo(WPARAM, LPARAM);
  75. afx_msg LRESULT OnExtAddAppServer(WPARAM, LPARAM);
  76. afx_msg LRESULT OnExtRemoveAppServer(WPARAM, LPARAM);
  77. afx_msg LRESULT OnExtAppChanged(WPARAM, LPARAM);
  78. //}}AFX_MSG
  79. DECLARE_MESSAGE_MAP()
  80. }; // end class CApplicationView
  81. #endif // _APPLICATIONVIEW_H