home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / general / dbvlist / dbvlistview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  2.2 KB  |  82 lines

  1. // DBVListView.h : interface of the CDBVListView class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #if !defined(AFX_DBVLISTVIEW_H__13CCB74B_ED59_11D0_8286_00C04FD73634__INCLUDED_)
  14. #define AFX_DBVLISTVIEW_H__13CCB74B_ED59_11D0_8286_00C04FD73634__INCLUDED_
  15.  
  16. #if _MSC_VER >= 1000
  17. #pragma once
  18. #endif // _MSC_VER >= 1000
  19.  
  20. class CDBVListSet;
  21.  
  22. class CDBVListView : public CFormView
  23. {
  24. protected: // create from serialization only
  25.     CDBVListView();
  26.     DECLARE_DYNCREATE(CDBVListView)
  27.  
  28. public:
  29.     //{{AFX_DATA(CDBVListView)
  30.     enum { IDD = IDD_DBVLIST_FORM };
  31.     CDBVListSet* m_pSet;
  32.     CString m_strDiv;
  33.     //}}AFX_DATA
  34.  
  35. // Attributes
  36. public:
  37.     CDBVListDoc* GetDocument();
  38.  
  39. // Operations
  40. public:
  41.  
  42. // Overrides
  43.     // ClassWizard generated virtual function overrides
  44.     //{{AFX_VIRTUAL(CDBVListView)
  45.     public:
  46.     virtual CDaoRecordset* OnGetRecordset();
  47.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  48.     protected:
  49.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  50.     virtual void OnInitialUpdate(); // called first time after construct
  51.     //}}AFX_VIRTUAL
  52.  
  53. // Implementation
  54. public:
  55.     virtual ~CDBVListView();
  56. #ifdef _DEBUG
  57.     virtual void AssertValid() const;
  58.     virtual void Dump(CDumpContext& dc) const;
  59. #endif
  60.  
  61. protected:
  62.  
  63. // Generated message map functions
  64. protected:
  65.     //{{AFX_MSG(CDBVListView)
  66.     afx_msg void OnFetch();
  67.     //}}AFX_MSG
  68.     DECLARE_MESSAGE_MAP()
  69. };
  70.  
  71. #ifndef _DEBUG  // debug version in DBVListView.cpp
  72. inline CDBVListDoc* CDBVListView::GetDocument()
  73.    { return (CDBVListDoc*)m_pDocument; }
  74. #endif
  75.  
  76. /////////////////////////////////////////////////////////////////////////////
  77.  
  78. //{{AFX_INSERT_LOCATION}}
  79. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  80.  
  81. #endif // !defined(AFX_DBVLISTVIEW_H__13CCB74B_ED59_11D0_8286_00C04FD73634__INCLUDED_)
  82.