home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / componen / interact / demo / data.2 / samples / mfc / DBMODEL / DBMODVW.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-20  |  1.6 KB  |  57 lines

  1. // dbmodvw.h : interface of the CDbmodelView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. class CIDO;
  5.  
  6. class CDbmodelView : public CView
  7. {
  8. protected: // create from serialization only
  9.      CDbmodelView();
  10.      DECLARE_DYNCREATE(CDbmodelView)
  11.  
  12. // Attributes
  13. public:
  14.      CDbmodelDoc* GetDocument();
  15.  
  16.      CIDO * m_pIDO;
  17. // Operations
  18. public:
  19.  
  20. // Implementation
  21. public:
  22.      virtual ~CDbmodelView();
  23.      virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  24. #ifdef _DEBUG
  25.      virtual void AssertValid() const;
  26.      virtual void Dump(CDumpContext& dc) const;
  27. #endif
  28.  
  29. protected:
  30.  
  31. // Generated message map functions
  32. protected:
  33.      //{{AFX_MSG(CDbmodelView)
  34.      afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  35.      afx_msg void OnSize(UINT nType, int cx, int cy);
  36.      afx_msg void OnEditAdd1c1();
  37.      afx_msg void OnEditAdde1();
  38.      afx_msg void OnEditAdde2();
  39.      afx_msg void OnEditAddr1();
  40.      afx_msg void OnEditAddr2();
  41.      afx_msg void OnFilePrint();
  42.     afx_msg void OnFileOpen();
  43.     afx_msg void OnFileSave();
  44.     //}}AFX_MSG
  45.      afx_msg LRESULT OnEntityAdded(WPARAM wParam, LPARAM lParam);
  46.      afx_msg LRESULT OnRelationAddRequest(WPARAM wParam, LPARAM lParam);
  47.      afx_msg LRESULT OnClickEntity(WPARAM wParam, LPARAM lParam);
  48.      DECLARE_MESSAGE_MAP()
  49. };
  50.  
  51. #ifndef _DEBUG  // debug version in dbmodvw.cpp
  52. inline CDbmodelDoc* CDbmodelView::GetDocument()
  53.    { return (CDbmodelDoc*)m_pDocument; }
  54. #endif
  55.  
  56. /////////////////////////////////////////////////////////////////////////////
  57.