home *** CD-ROM | disk | FTP | other *** search
/ Master Visual C++ 1.5 / MASTERVC15.ISO / vcprog / original / ch10 / mycombo / mycomvw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-18  |  1.4 KB  |  68 lines

  1. // mycomvw.h : interface of the CMycomboView 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.  
  17. class CMycomboView : public CView
  18. {
  19. protected: // create from serialization only
  20.     CMycomboView();
  21.     DECLARE_DYNCREATE(CMycomboView)
  22.  
  23. // Attributes
  24. public:
  25.     CMycomboDoc* GetDocument();
  26.  
  27.     //////////////////////
  28.     // MY CODE STARTS HERE
  29.     //////////////////////
  30.  
  31.     // Create a dlg object of class CMyDlg
  32.     CMyDlg dlg;
  33.  
  34.     ////////////////////
  35.     // MY CODE ENDS HERE
  36.     ////////////////////
  37.  
  38.  
  39. // Operations
  40. public:
  41.  
  42. // Implementation
  43. public:
  44.     virtual ~CMycomboView();
  45.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  46. #ifdef _DEBUG
  47.     virtual void AssertValid() const;
  48.     virtual void Dump(CDumpContext& dc) const;
  49. #endif
  50.  
  51. protected:
  52.  
  53. // Generated message map functions
  54. protected:
  55.     //{{AFX_MSG(CMycomboView)
  56.     afx_msg void OnFileTryit();
  57.     afx_msg void OnFileCurrentitem();
  58.     //}}AFX_MSG
  59.     DECLARE_MESSAGE_MAP()
  60. };
  61.  
  62. #ifndef _DEBUG  // debug version in mycomvw.cpp
  63. inline CMycomboDoc* CMycomboView::GetDocument()
  64.    { return (CMycomboDoc*)m_pDocument; }
  65. #endif
  66.  
  67. /////////////////////////////////////////////////////////////////////////////
  68.