home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / database / mfcrows / mfcrowview.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  2KB  |  85 lines

  1. // MFCRowView.h : interface of the CMFCRowView 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_MFCROWVIEW_H__2B60A704_22FC_11D1_8FD3_000000000000__INCLUDED_)
  14. #define AFX_MFCROWVIEW_H__2B60A704_22FC_11D1_8FD3_000000000000__INCLUDED_
  15.  
  16. #if _MSC_VER >= 1000
  17. #pragma once
  18. #endif // _MSC_VER >= 1000
  19.  
  20. class CMFCRowSet;
  21.  
  22. class CMFCRowView : public COleDBRecordView
  23. {
  24. protected: // create from serialization only
  25.     CMFCRowView();
  26.     DECLARE_DYNCREATE(CMFCRowView)
  27.  
  28. public:
  29.     //{{AFX_DATA(CMFCRowView)
  30.     enum { IDD = IDD_MFCROW_FORM };
  31.     CMFCRowSet* m_pSet;
  32.     //}}AFX_DATA
  33.  
  34. // Attributes
  35. public:
  36.     CMFCRowDoc* GetDocument();
  37.  
  38. // Operations
  39. public:
  40.  
  41. // Overrides
  42.     // ClassWizard generated virtual function overrides
  43.     //{{AFX_VIRTUAL(CMFCRowView)
  44.     public:
  45.     virtual CRowset* OnGetRowset();
  46.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  47.     protected:
  48.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  49.     virtual void OnInitialUpdate(); // called first time after construct
  50.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  51.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  52.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  53.     //}}AFX_VIRTUAL
  54.  
  55. // Implementation
  56. public:
  57.     virtual ~CMFCRowView();
  58. #ifdef _DEBUG
  59.     virtual void AssertValid() const;
  60.     virtual void Dump(CDumpContext& dc) const;
  61. #endif
  62.  
  63. protected:
  64.  
  65. // Generated message map functions
  66. protected:
  67.     //{{AFX_MSG(CMFCRowView)
  68.         // NOTE - the ClassWizard will add and remove member functions here.
  69.         //    DO NOT EDIT what you see in these blocks of generated code !
  70.     //}}AFX_MSG
  71.     DECLARE_MESSAGE_MAP()
  72. };
  73.  
  74. #ifndef _DEBUG  // debug version in MFCRowView.cpp
  75. inline CMFCRowDoc* CMFCRowView::GetDocument()
  76.    { return (CMFCRowDoc*)m_pDocument; }
  77. #endif
  78.  
  79. /////////////////////////////////////////////////////////////////////////////
  80.  
  81. //{{AFX_INSERT_LOCATION}}
  82. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  83.  
  84. #endif // !defined(AFX_MFCROWVIEW_H__2B60A704_22FC_11D1_8FD3_000000000000__INCLUDED_)
  85.