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 / crsform.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.6 KB  |  61 lines

  1. // crsform.h : header file
  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. /////////////////////////////////////////////////////////////////////////////
  14. // CCourseForm record view
  15.  
  16. class CCourseForm : public CAddForm
  17. {
  18.     DECLARE_DYNCREATE(CCourseForm)
  19. public:
  20.     CCourseForm();          // protected constructor used by dynamic creation
  21.  
  22. // Form Data
  23. public:
  24.     //{{AFX_DATA(CCourseForm)
  25.     enum { IDD = IDD_COURSE_FORM };
  26.     CEdit   m_ctlCourseID;
  27.     CCourseSet* m_pSet;
  28.     //}}AFX_DATA
  29.  
  30. // Attributes
  31. public:
  32.  
  33. // Operations
  34. public:
  35.  
  36. // Overrides
  37.     // ClassWizard generate virtual function overrides
  38.     //{{AFX_VIRTUAL(CSectionForm)
  39.     public:
  40.     virtual CDaoRecordset* OnGetRecordset();
  41.     protected:
  42.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  43.     virtual void OnInitialUpdate(); // called first time after construct
  44.     virtual BOOL OnMove(UINT nIDMoveCommand);
  45.     //}}AFX_VIRTUAL
  46.  
  47. // Implementation
  48. protected:
  49.     virtual ~CCourseForm();
  50.  
  51.     // Generated message map functions
  52.     //{{AFX_MSG(CCourseForm)
  53.     afx_msg void OnRecordAdd();
  54.     afx_msg void OnRecordDelete();
  55.     afx_msg void OnRecordRefresh();
  56.     //}}AFX_MSG
  57.     DECLARE_MESSAGE_MAP()
  58. };
  59.  
  60. /////////////////////////////////////////////////////////////////////////////
  61.