home *** CD-ROM | disk | FTP | other *** search
/ Mastering Microsoft Visual C++ 4 (2nd Edition) / VisualC4.ISO / echo / echoview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-30  |  1.4 KB  |  59 lines

  1. // EchoView.h : interface of the CEchoView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CEchoView : public CView
  6. {
  7. private:
  8.    POINT m_CaretPos;
  9.    int m_XCaret, m_YCaret;
  10.  
  11. protected: // create from serialization only
  12.    CEchoView();
  13.    DECLARE_DYNCREATE(CEchoView)
  14.  
  15. // Attributes
  16. public:
  17.    CEchoDoc* GetDocument();
  18.  
  19. // Operations
  20. public:
  21.  
  22. // Overrides
  23.    // ClassWizard generated virtual function overrides
  24.    //{{AFX_VIRTUAL(CEchoView)
  25.    public:
  26.    virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  27.    virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  28.    protected:
  29.    //}}AFX_VIRTUAL
  30.  
  31. // Implementation
  32. public:
  33.    virtual ~CEchoView();
  34. #ifdef _DEBUG
  35.    virtual void AssertValid() const;
  36.    virtual void Dump(CDumpContext& dc) const;
  37. #endif
  38.  
  39. protected:
  40.  
  41. // Generated message map functions
  42. protected:
  43.    //{{AFX_MSG(CEchoView)
  44.    afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
  45.    afx_msg void OnEditClear();
  46.    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  47.    afx_msg void OnKillFocus(CWnd* pNewWnd);
  48.    afx_msg void OnSetFocus(CWnd* pOldWnd);
  49.    //}}AFX_MSG
  50.    DECLARE_MESSAGE_MAP()
  51. };
  52.  
  53. #ifndef _DEBUG  // debug version in EchoView.cpp
  54. inline CEchoDoc* CEchoView::GetDocument()
  55.    { return (CEchoDoc*)m_pDocument; }
  56. #endif
  57.  
  58. /////////////////////////////////////////////////////////////////////////////
  59.