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

  1. // denrldoc.h : interface of the CDaoEnrolDoc 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. #define HINT_ADD_COURSE 1
  14. #define HINT_DELETE_COURSE 2
  15.  
  16. class CUpdateHint : public CObject
  17. {
  18.     DECLARE_DYNAMIC(CUpdateHint);
  19.     CUpdateHint();
  20.     CString m_strCourse;
  21. };
  22.  
  23. class CDaoEnrolDoc : public CDocument
  24. {
  25. protected: // create from serialization only
  26.     CDaoEnrolDoc();
  27.     DECLARE_DYNCREATE(CDaoEnrolDoc)
  28.  
  29. // Attributes
  30. protected:
  31.     CDaoDatabase m_database;
  32. public:
  33.     CsectionSet m_sectionSet;
  34.     CCourseSet m_courseSet;
  35.     CCourseSet m_courseSetForForm; // for CCourseForm
  36.     CDaoDatabase* GetDatabase(){
  37.         return &m_database;
  38.     }
  39.  
  40. // Operations
  41. public:
  42.  
  43. // Overrides
  44.     // ClassWizard generated virtual function overrides
  45.     //{{AFX_VIRTUAL(CDaoEnrolDoc)
  46.     public:
  47.     virtual BOOL OnNewDocument();
  48.     //}}AFX_VIRTUAL
  49.  
  50. // Implementation
  51. public:
  52.     virtual ~CDaoEnrolDoc();
  53. #ifdef _DEBUG
  54.     virtual void AssertValid() const;
  55.     virtual void Dump(CDumpContext& dc) const;
  56. #endif
  57.  
  58. protected:
  59.  
  60. // Generated message map functions
  61. protected:
  62.     //{{AFX_MSG(CDaoEnrolDoc)
  63.         // NOTE - the ClassWizard will add and remove member functions here.
  64.         //    DO NOT EDIT what you see in these blocks of generated code !
  65.     //}}AFX_MSG
  66.     DECLARE_MESSAGE_MAP()
  67. };
  68.  
  69. /////////////////////////////////////////////////////////////////////////////
  70.