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

  1. // splitterView.h : interface of the CSplitterView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CSplitterView : public CScrollView
  6. {
  7. protected: // create from serialization only
  8.     CSplitterView();
  9.     DECLARE_DYNCREATE(CSplitterView)
  10.  
  11. // Attributes
  12. public:
  13.     CSplitterDoc* GetDocument();
  14.  
  15. protected:
  16.  
  17. // Operations
  18. public:
  19.  
  20. // Overrides
  21.     // ClassWizard generated virtual function overrides
  22.     //{{AFX_VIRTUAL(CSplitterView)
  23.     public:
  24.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  25.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  26.     virtual void OnInitialUpdate();
  27.     //}}AFX_VIRTUAL
  28.  
  29. // Implementation
  30. public:
  31.     virtual ~CSplitterView();
  32. #ifdef _DEBUG
  33.     virtual void AssertValid() const;
  34.     virtual void Dump(CDumpContext& dc) const;
  35. #endif
  36.  
  37. protected:
  38.  
  39. // Generated message map functions
  40. protected:
  41.     //{{AFX_MSG(CSplitterView)
  42.         // NOTE - the ClassWizard will add and remove member functions here.
  43.         //    DO NOT EDIT what you see in these blocks of generated code !
  44.     //}}AFX_MSG
  45.     DECLARE_MESSAGE_MAP()
  46. };
  47.  
  48. #ifndef _DEBUG  // debug version in splitterView.cpp
  49. inline CSplitterDoc* CSplitterView::GetDocument()
  50.    { return (CSplitterDoc*)m_pDocument; }
  51. #endif
  52.  
  53. /////////////////////////////////////////////////////////////////////////////
  54.