home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c06 / modal / modlview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.2 KB  |  53 lines

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