home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c07 / sdi2views / defaultview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.1 KB  |  49 lines

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