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

  1. // sectform.h : interface of the CSectionForm 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. class CsectionSet;
  14.  
  15. class CSectionForm : public CDaoRecordView
  16. {
  17.     DECLARE_DYNCREATE(CSectionForm)
  18. public:
  19.     CSectionForm();
  20.  
  21. public:
  22.     //{{AFX_DATA(CSectionForm)
  23.     enum { IDD = IDD_DAOENROL_FORM };
  24.     CEdit   m_ctlSection;
  25.     CComboBox   m_ctlCourseList;
  26.     CsectionSet* m_pSet;
  27.     //}}AFX_DATA
  28.  
  29. // Attributes
  30. public:
  31.     CDaoEnrolDoc* GetDocument();
  32. protected:
  33.     BOOL m_bAddMode;
  34.  
  35. // Operations
  36. public:
  37.  
  38. // Overrides
  39.     // ClassWizard generated virtual function overrides
  40.     //{{AFX_VIRTUAL(CSectionForm)
  41.     public:
  42.     virtual CDaoRecordset* OnGetRecordset();
  43.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  44.     protected:
  45.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  46.     virtual void OnInitialUpdate(); // called first time after construct
  47.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  48.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  49.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  50.     virtual BOOL OnMove(UINT nIDMoveCommand);
  51.     //}}AFX_VIRTUAL
  52.  
  53. // Implementation
  54. public:
  55.     virtual ~CSectionForm();
  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(CSectionForm)
  66.     afx_msg void OnSelendokCourselist();
  67.     afx_msg void OnRecordAdd();
  68.     afx_msg void OnRecordDelete();
  69.     afx_msg void OnRecordRefresh();
  70.     //}}AFX_MSG
  71.     DECLARE_MESSAGE_MAP()
  72. };
  73.  
  74. #ifndef _DEBUG  // debug version in sectform.cpp
  75. inline CDaoEnrolDoc* CSectionForm::GetDocument()
  76.    { return (CDaoEnrolDoc*)m_pDocument; }
  77. #endif
  78.  
  79. /////////////////////////////////////////////////////////////////////////////
  80.