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

  1. // chatvw.h : interface of the CChatView 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 CChatView : public CEditView
  14. {
  15. protected: // create from serialization only
  16.     CChatView();
  17.     DECLARE_DYNCREATE(CChatView)
  18.  
  19. // Attributes
  20. public:
  21.     CChatDoc* GetDocument();
  22.  
  23. // Operations
  24. public:
  25.     void Message(LPCTSTR lpszMessage);
  26.  
  27. // Overrides
  28.     // ClassWizard generated virtual function overrides
  29.     //{{AFX_VIRTUAL(CChatView)
  30.     public:
  31.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  32.     protected:
  33.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  34.     //}}AFX_VIRTUAL
  35.  
  36. // Implementation
  37. public:
  38.     virtual ~CChatView();
  39. #ifdef _DEBUG
  40.     virtual void AssertValid() const;
  41.     virtual void Dump(CDumpContext& dc) const;
  42. #endif
  43.  
  44. protected:
  45.  
  46. // Generated message map functions
  47. protected:
  48.     //{{AFX_MSG(CChatView)
  49.     //}}AFX_MSG
  50.     DECLARE_MESSAGE_MAP()
  51. };
  52.  
  53. #ifndef _DEBUG  // debug version in chatvw.cpp
  54. inline CChatDoc* CChatView::GetDocument()
  55.    { return (CChatDoc*)m_pDocument; }
  56. #endif
  57.  
  58. /////////////////////////////////////////////////////////////////////////////
  59.