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.

125 lines
3.7 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. /*******************************************************************************
  3. *
  4. * appsvvw.h
  5. *
  6. * interface of the CAppServerView class
  7. *
  8. * copyright notice: Copyright 1994, Citrix Systems Inc.
  9. *
  10. * $Author: butchd $ Butch Davis
  11. *
  12. * $Log: M:\nt\private\utils\citrix\winutils\wincfg\VCS\appsvvw.h $
  13. *
  14. * Rev 1.10 22 Oct 1997 09:43:58 butchd
  15. * MS changes: added r-button popup menu
  16. *
  17. * Rev 1.9 12 Sep 1996 16:15:54 butchd
  18. * update
  19. *
  20. *******************************************************************************/
  21. #define BITMAP_HEIGHT 15 // class bitmap height
  22. #define BITMAP_WIDTH 25 // class bitmap height
  23. #define BITMAP_X 5 // class bitmap starting display x-point
  24. #define BITMAP_END (BITMAP_X + BITMAP_WIDTH)
  25. #define SPACER_COLUMNS 3 // inter-field spacing
  26. ////////////////////////////////////////////////////////////////////////////////
  27. // CAppServerView class
  28. //
  29. class CAppServerView : public CRowView
  30. {
  31. DECLARE_DYNCREATE(CAppServerView)
  32. /*
  33. * Member variables.
  34. */
  35. protected:
  36. int m_nActiveRow;
  37. int m_nLatestDeviceTechnology;
  38. int m_tmMaxPdNameWidth;
  39. int m_tmMaxWSNameWidth;
  40. int m_tmMaxWdNameWidth;
  41. int m_tmMaxCommentWidth;
  42. int m_tmTotalWidth;
  43. int m_tmSpacerWidth;
  44. int m_tmFontHeight;
  45. /*
  46. * Implementation
  47. */
  48. public:
  49. CAppServerView();
  50. protected:
  51. virtual ~CAppServerView();
  52. /*
  53. * Overrides of MFC CView class
  54. */
  55. public:
  56. CAppServerDoc* GetDocument();
  57. protected:
  58. void OnUpdate( CView* pSender, LPARAM lHint = 0L,
  59. CObject* pHint = NULL );
  60. /*
  61. * Overrides of CRowView class
  62. */
  63. protected:
  64. void GetRowWidthHeight( CDC* pDC, int& nRowWidth, int& nRowHeight );
  65. int GetActiveRow();
  66. int GetRowCount();
  67. void ChangeSelectionNextRow( BOOL bNext );
  68. void ChangeSelectionToRow( int nRow );
  69. void OnDrawRow( CDC* pDC, int nRowNo, int y, BOOL bSelected );
  70. void OnDrawHeaderBar( CDC* pDC, int y );
  71. void ResetHeaderBar();
  72. /*
  73. * Operations
  74. */
  75. public:
  76. void ResetView( BOOL bCalculateFieldMaximums );
  77. protected:
  78. BOOL CalculateFieldMaximums( PWSLOBJECT pWSLObject,
  79. CDC * pEntryDC,
  80. BOOL bResetDefaults );
  81. BOOL WSLObjectFieldMaximums( PWSLOBJECT pWSLObject,
  82. CDC * pDC );
  83. /*
  84. * Message map / commands
  85. */
  86. protected:
  87. //{{AFX_MSG(CAppServerView)
  88. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  89. afx_msg void OnWinStationAdd();
  90. afx_msg void OnUpdateWinStationAdd( CCmdUI* pCmdUI );
  91. afx_msg void OnWinStationCopy();
  92. afx_msg void OnUpdateWinStationCopy( CCmdUI* pCmdUI );
  93. afx_msg void OnWinStationDelete();
  94. afx_msg void OnUpdateWinStationDelete( CCmdUI* pCmdUI );
  95. afx_msg void OnWinStationRename();
  96. afx_msg void OnUpdateWinStationRename(CCmdUI* pCmdUI);
  97. afx_msg void OnWinStationEdit();
  98. afx_msg void OnUpdateWinStationEdit(CCmdUI* pCmdUI);
  99. afx_msg void OnWinStationEnable();
  100. afx_msg void OnUpdateWinStationEnable(CCmdUI* pCmdUI);
  101. afx_msg void OnWinStationDisable();
  102. afx_msg void OnUpdateWinStationDisable(CCmdUI* pCmdUI);
  103. afx_msg void OnLButtonDblClk( UINT nFlags, CPoint point );
  104. afx_msg void OnWinStationNext();
  105. afx_msg void OnUpdateWinStationNext( CCmdUI* pCmdUI );
  106. afx_msg void OnWinStationPrev();
  107. afx_msg void OnUpdateWinStationPrev( CCmdUI* pCmdUI );
  108. afx_msg void OnSecurityPermissions();
  109. afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
  110. afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  111. //}}AFX_MSG
  112. DECLARE_MESSAGE_MAP()
  113. }; // end CAppServerView class interface
  114. ////////////////////////////////////////////////////////////////////////////////