home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c08 / lab01 / ex01 / joinview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.5 KB  |  62 lines

  1. // JoinView.h : interface of the CJoinView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CJoinSet;
  6.  
  7. class CJoinView : public CDaoRecordView
  8. {
  9. protected: // create from serialization only
  10.     CJoinView();
  11.     DECLARE_DYNCREATE(CJoinView)
  12.  
  13. public:
  14.     //{{AFX_DATA(CJoinView)
  15.     enum { IDD = IDD_JOIN_FORM };
  16.     CJoinSet* m_pSet;
  17.     //}}AFX_DATA
  18.  
  19. // Attributes
  20. public:
  21.     CJoinDoc* GetDocument();
  22.  
  23. // Operations
  24. public:
  25.  
  26. // Overrides
  27.     // ClassWizard generated virtual function overrides
  28.     //{{AFX_VIRTUAL(CJoinView)
  29.     public:
  30.     virtual CDaoRecordset* OnGetRecordset();
  31.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  32.     protected:
  33.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  34.     virtual void OnInitialUpdate(); // called first time after construct
  35.     //}}AFX_VIRTUAL
  36.  
  37. // Implementation
  38. public:
  39.     virtual ~CJoinView();
  40. #ifdef _DEBUG
  41.     virtual void AssertValid() const;
  42.     virtual void Dump(CDumpContext& dc) const;
  43. #endif
  44.  
  45. protected:
  46.  
  47. // Generated message map functions
  48. protected:
  49.     //{{AFX_MSG(CJoinView)
  50.         // NOTE - the ClassWizard will add and remove member functions here.
  51.         //    DO NOT EDIT what you see in these blocks of generated code !
  52.     //}}AFX_MSG
  53.     DECLARE_MESSAGE_MAP()
  54. };
  55.  
  56. #ifndef _DEBUG  // debug version in JoinView.cpp
  57. inline CJoinDoc* CJoinView::GetDocument()
  58.    { return (CJoinDoc*)m_pDocument; }
  59. #endif
  60.  
  61. /////////////////////////////////////////////////////////////////////////////
  62.