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

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