home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c09 / odbc2 / odbc2view.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  2.0 KB  |  73 lines

  1. // odbc2View.h : interface of the COdbc2View class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_ODBC2VIEW_H__73E4358B_654C_11D0_9F76_00AA00680BB3__INCLUDED_)
  6. #define AFX_ODBC2VIEW_H__73E4358B_654C_11D0_9F76_00AA00680BB3__INCLUDED_
  7.  
  8. #include "MyRecordset.h"    // Added by ClassView
  9. #include "MyRecordset2.h"    // Added by ClassView
  10. #include "MyRecordset3.h"    // Added by ClassView
  11. class COdbc2View : public CScrollView
  12. {
  13. protected: // create from serialization only
  14.     COdbc2View();
  15.     DECLARE_DYNCREATE(COdbc2View)
  16.  
  17. // Attributes
  18. public:
  19.     COdbc2Doc* GetDocument();
  20.  
  21. // Operations
  22. public:
  23.  
  24. // Overrides
  25.     // ClassWizard generated virtual function overrides
  26.     //{{AFX_VIRTUAL(COdbc2View)
  27.     public:
  28.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  29.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  30.     protected:
  31.     virtual void OnInitialUpdate(); // called first time after construct
  32.     //}}AFX_VIRTUAL
  33.  
  34. // Implementation
  35. public:
  36.     CDatabase m_db;
  37.     CMyRecordset* m_pRecordset;
  38.     CMyRecordset2* m_pRecordset2;
  39.     CMyRecordset3* m_pRecordset3;
  40.     virtual ~COdbc2View();
  41. #ifdef _DEBUG
  42.     virtual void AssertValid() const;
  43.     virtual void Dump(CDumpContext& dc) const;
  44. #endif
  45.  
  46. protected:
  47.  
  48. // Generated message map functions
  49. protected:
  50.     //{{AFX_MSG(COdbc2View)
  51.     afx_msg void OnOdbcAdd();
  52.     afx_msg void OnOdbcOpen();
  53.     afx_msg void OnOdbcGeneric();
  54.     afx_msg void OnOdbcRowset();
  55.     afx_msg void OnOdbcQuery();
  56.     afx_msg void OnOdbcInfo();
  57.     afx_msg void OnOdbcCreate();
  58.     //}}AFX_MSG
  59.     DECLARE_MESSAGE_MAP()
  60. };
  61.  
  62. #ifndef _DEBUG  // debug version in odbc2View.cpp
  63. inline COdbc2Doc* COdbc2View::GetDocument()
  64.    { return (COdbc2Doc*)m_pDocument; }
  65. #endif
  66.  
  67. /////////////////////////////////////////////////////////////////////////////
  68.  
  69. //{{AFX_INSERT_LOCATION}}
  70. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  71.  
  72. #endif // !defined(AFX_ODBC2VIEW_H__73E4358B_654C_11D0_9F76_00AA00680BB3__INCLUDED_)
  73.