home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c11 / lab04 / ex02 / baseline / gpsrcview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.3 KB  |  53 lines

  1. // gpsrcView.h : interface of the CGpsrcView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CGpsrcView : public CScrollView
  6. {
  7. protected: // create from serialization only
  8.     CGpsrcView();
  9.     DECLARE_DYNCREATE(CGpsrcView)
  10.  
  11. // Attributes
  12. public:
  13.     CGpsrcDoc* GetDocument();
  14.  
  15. // Operations
  16. public:
  17.  
  18. // Overrides
  19.     // ClassWizard generated virtual function overrides
  20.     //{{AFX_VIRTUAL(CGpsrcView)
  21.     public:
  22.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  23.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  24.     protected:
  25.     virtual void OnInitialUpdate(); // called first time after construct
  26.     //}}AFX_VIRTUAL
  27.  
  28. // Implementation
  29. public:
  30.     virtual ~CGpsrcView();
  31. #ifdef _DEBUG
  32.     virtual void AssertValid() const;
  33.     virtual void Dump(CDumpContext& dc) const;
  34. #endif
  35.  
  36. protected:
  37.  
  38. // Generated message map functions
  39. protected:
  40.     //{{AFX_MSG(CGpsrcView)
  41.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  42.     afx_msg void OnViewClear();
  43.     //}}AFX_MSG
  44.     DECLARE_MESSAGE_MAP()
  45. };
  46.  
  47. #ifndef _DEBUG  // debug version in gpsrcView.cpp
  48. inline CGpsrcDoc* CGpsrcView::GetDocument()
  49.    { return (CGpsrcDoc*)m_pDocument; }
  50. #endif
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53.