home *** CD-ROM | disk | FTP | other *** search
/ Master Visual C++ 1.5 / MASTERVC15.ISO / vcprog / original / ch09 / speed / speedvw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-17  |  1.5 KB  |  73 lines

  1. // speedvw.h : interface of the CSpeedView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. //////////////////////
  6. // MY CODE STARTS HERE
  7. //////////////////////
  8.  
  9. // Because the declaration of the CSpeedView class
  10. // contains the creation of the dlg object of type 
  11. // CMyDlg, the MyDlg.h file must be #included.
  12. #include "MyDlg.h"
  13.  
  14. ////////////////////
  15. // MY CODE ENDS HERE
  16. ////////////////////
  17.  
  18.  
  19.  
  20.  
  21. class CSpeedView : public CView
  22. {
  23. protected: // create from serialization only
  24.     CSpeedView();
  25.     DECLARE_DYNCREATE(CSpeedView)
  26.  
  27. // Attributes
  28. public:
  29.     CSpeedDoc* GetDocument();
  30.  
  31.  
  32.      //////////////////////
  33.      // MY CODE STARTS HERE
  34.      //////////////////////
  35.  
  36.     // Create a dialog box object of class CMyDlg
  37.     CMyDlg dlg;
  38.  
  39.      ////////////////////
  40.      // MY CODE ENDS HERE
  41.      ////////////////////
  42.  
  43.  
  44. // Operations
  45. public:
  46.  
  47. // Implementation
  48. public:
  49.     virtual ~CSpeedView();
  50.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  51. #ifdef _DEBUG
  52.     virtual void AssertValid() const;
  53.     virtual void Dump(CDumpContext& dc) const;
  54. #endif
  55.  
  56. protected:
  57.  
  58. // Generated message map functions
  59. protected:
  60.     //{{AFX_MSG(CSpeedView)
  61.     afx_msg void OnFileTryit();
  62.     afx_msg void OnFileCurrentspeed();
  63.     //}}AFX_MSG
  64.     DECLARE_MESSAGE_MAP()
  65. };
  66.  
  67. #ifndef _DEBUG  // debug version in speedvw.cpp
  68. inline CSpeedDoc* CSpeedView::GetDocument()
  69.    { return (CSpeedDoc*)m_pDocument; }
  70. #endif
  71.  
  72. /////////////////////////////////////////////////////////////////////////////
  73.