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.

149 lines
3.0 KiB

  1. /*******************************************************************************
  2. *
  3. * msgvw.h
  4. *
  5. * - header for the CMessageView class
  6. * - implementation can be found in msgvw.cpp
  7. *
  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\winadmin\VCS\msgview.h $
  15. *
  16. * Rev 1.1 15 Oct 1997 21:47:26 donm
  17. * update
  18. *******************************************************************************/
  19. //////////////////////
  20. // FILE:
  21. //
  22. //
  23. #ifndef _MSGVIEW_H
  24. #define _MSGVIEW_H
  25. #include "Resource.h"
  26. #ifndef __AFXEXT_H__
  27. #include <afxext.h>
  28. #endif
  29. #include "winadmin.h"
  30. class CMessagePage;
  31. //////////////////////
  32. // CLASS: CMessageView
  33. //
  34. // View that display a message centered in it
  35. // This replaces CBusyServerView, CBadServerView, CBadWinStationView, and CListenerView
  36. //
  37. class CMessageView : public CAdminView
  38. {
  39. friend class CRightPane;
  40. protected:
  41. CMessageView(); // protected constructor used by dynamic creation
  42. DECLARE_DYNCREATE(CMessageView)
  43. // Attributes
  44. protected:
  45. private:
  46. WORD m_wMessageID;
  47. // CString m_MessageString;
  48. // CFont m_MessageFont;
  49. CMessagePage *m_pMessagePage;
  50. // Operations
  51. protected:
  52. void Reset(void *message);
  53. // Overrides
  54. // ClassWizard generated virtual function overrides
  55. //{{AFX_VIRTUAL(CMessageView)
  56. // Overrides
  57. public:
  58. virtual void OnInitialUpdate();
  59. protected:
  60. virtual void OnDraw(CDC* pDC);
  61. //}}AFX_VIRTUAL
  62. // Implementation
  63. protected:
  64. virtual ~CMessageView();
  65. #ifdef _DEBUG
  66. virtual void AssertValid() const;
  67. virtual void Dump(CDumpContext& dc) const;
  68. #endif
  69. // Generated message map functions
  70. protected:
  71. //{{AFX_MSG(CMessageView)
  72. // NOTE - the ClassWizard will add and remove member functions here.
  73. afx_msg void OnSize(UINT nType, int cx, int cy);
  74. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  75. //}}AFX_MSG
  76. DECLARE_MESSAGE_MAP()
  77. }; // end class CMessageView
  78. //////////////////////////
  79. // CLASS: CMessagePage
  80. //
  81. class CMessagePage : public CAdminPage
  82. {
  83. friend class CMessageView;
  84. protected:
  85. CMessagePage(); // protected constructor used by dynamic creation
  86. DECLARE_DYNCREATE(CMessagePage)
  87. // Form Data
  88. public:
  89. //{{AFX_DATA(CApplicationInfoPage)
  90. enum { IDD = IDD_MESSAGE_PAGE };
  91. //}}AFX_DATA
  92. // Attributes
  93. public:
  94. protected:
  95. private:
  96. // Operations
  97. public:
  98. private:
  99. void Reset(void *pMsg);
  100. // Overrides
  101. // ClassWizard generated virtual function overrides
  102. //{{AFX_VIRTUAL(CMessagePage)
  103. public:
  104. virtual void OnInitialUpdate();
  105. protected:
  106. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  107. //}}AFX_VIRTUAL
  108. // Implementation
  109. protected:
  110. virtual ~CMessagePage();
  111. #ifdef _DEBUG
  112. virtual void AssertValid() const;
  113. virtual void Dump(CDumpContext& dc) const;
  114. #endif
  115. // Generated message map functions
  116. //{{AFX_MSG(CMessagePage)
  117. afx_msg void OnSize(UINT nType, int cx, int cy);
  118. //}}AFX_MSG
  119. DECLARE_MESSAGE_MAP()
  120. }; // end class CMessagePage
  121. #endif // _MSGVIEW_H