home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / advanced / chatsrvr / srvrvw.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  2KB  |  60 lines

  1. // srvrvw.h : interface of the CServerView class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. class CServerView : public CEditView
  14. {
  15. protected: // create from serialization only
  16.     CServerView();
  17.     DECLARE_DYNCREATE(CServerView)
  18.  
  19. // Attributes
  20. public:
  21.     CServerDoc* GetDocument();
  22.  
  23. // Operations
  24. public:
  25.     void Message(LPCTSTR lpszMessage);
  26.  
  27. // Overrides
  28.     // ClassWizard generated virtual function overrides
  29.     //{{AFX_VIRTUAL(CServerView)
  30.     public:
  31.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  32.     protected:
  33.     //}}AFX_VIRTUAL
  34.  
  35. // Implementation
  36. public:
  37.     virtual ~CServerView();
  38. #ifdef _DEBUG
  39.     virtual void AssertValid() const;
  40.     virtual void Dump(CDumpContext& dc) const;
  41. #endif
  42.  
  43. protected:
  44.  
  45. // Generated message map functions
  46. protected:
  47.     //{{AFX_MSG(CServerView)
  48.         // NOTE - the ClassWizard will add and remove member functions here.
  49.         //    DO NOT EDIT what you see in these blocks of generated code !
  50.     //}}AFX_MSG
  51.     DECLARE_MESSAGE_MAP()
  52. };
  53.  
  54. #ifndef _DEBUG  // debug version in srvrvw.cpp
  55. inline CServerDoc* CServerView::GetDocument()
  56.    { return (CServerDoc*)m_pDocument; }
  57. #endif
  58.  
  59. /////////////////////////////////////////////////////////////////////////////
  60.