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 / sendvw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.7 KB  |  63 lines

  1. // sendvw.h : header file
  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 CSendView : public CEditView
  14. {
  15. protected:
  16.     CSendView();           // protected constructor used by dynamic creation
  17.     DECLARE_DYNCREATE(CSendView)
  18.  
  19. // Attributes
  20. public:
  21.     BOOL m_bSendRandomMessages;
  22.     UINT m_TimerID;
  23.     CChatDoc* GetDocument();
  24.  
  25. // Operations
  26. public:
  27.  
  28. // Overrides
  29.     // ClassWizard generated virtual function overrides
  30.     //{{AFX_VIRTUAL(CSendView)
  31.     public:
  32.     virtual BOOL DestroyWindow();
  33.     protected:
  34.     virtual void OnDraw(CDC* pDC);      // overridden to draw this view
  35.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  36.     //}}AFX_VIRTUAL
  37.  
  38. // Implementation
  39. protected:
  40.     virtual ~CSendView();
  41. #ifdef _DEBUG
  42.     virtual void AssertValid() const;
  43.     virtual void Dump(CDumpContext& dc) const;
  44. #endif
  45.  
  46.     // Generated message map functions
  47. protected:
  48.     //{{AFX_MSG(CSendView)
  49.     afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
  50.     afx_msg void OnTimer(UINT nIDEvent);
  51.     afx_msg void OnAutochatter();
  52.     afx_msg void OnUpdateAutochatter(CCmdUI* pCmdUI);
  53.     //}}AFX_MSG
  54.     DECLARE_MESSAGE_MAP()
  55. };
  56.  
  57. #ifndef _DEBUG  // debug version in sendvw.cpp
  58. inline CChatDoc* CSendView::GetDocument()
  59.    { return (CChatDoc*)m_pDocument; }
  60. #endif
  61.  
  62. /////////////////////////////////////////////////////////////////////////////
  63.