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

  1. // SectForm.h : interface of the CSectionForm class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CSectionSet;
  6.  
  7. class CSectionForm : public CAddForm
  8. {
  9. public:
  10.     CSectionForm();
  11.     DECLARE_DYNCREATE(CSectionForm)
  12.  
  13. public:
  14.     //{{AFX_DATA(CSectionForm)
  15.     enum{ IDD = IDD_ENROLL_FORM };
  16.     CEdit   m_ctlSection;
  17.     CComboBox   m_ctlCourseList;
  18.     CSectionSet* m_pSet;
  19.     //}}AFX_DATA
  20.  
  21. // Attributes
  22. public:
  23.     CEnrollDoc* GetDocument();
  24.  
  25. // Operations
  26. public:
  27.  
  28. // Overrides
  29.     // ClassWizard generated virtual function overrides
  30.     //{{AFX_VIRTUAL(CSectionForm)
  31.     public:
  32.     virtual CRecordset* OnGetRecordset();
  33.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  34.     virtual BOOL OnMove(UINT nIDMoveCommand);
  35.  
  36.     protected:
  37.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  38.     virtual void OnInitialUpdate(); // called first time after construct
  39.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  40.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  41.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  42.     virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
  43.     //}}AFX_VIRTUAL
  44.  
  45. // Implementation
  46. public:
  47.     virtual ~CSectionForm();
  48. #ifdef _DEBUG
  49.     virtual void AssertValid() const;
  50.     virtual void Dump(CDumpContext& dc) const;
  51. #endif
  52.  
  53. protected:
  54.  
  55. // Generated message map functions
  56. protected:
  57.     //{{AFX_MSG(CSectionForm)
  58.     afx_msg void OnSelendokCourselist();
  59.     afx_msg void OnRecordAdd();
  60.     afx_msg void OnRecordRefresh();
  61.     //}}AFX_MSG
  62.     DECLARE_MESSAGE_MAP()
  63. };
  64.  
  65. #ifndef _DEBUG  // debug version in SectForm.cpp
  66. inline CEnrollDoc* CSectionForm::GetDocument()
  67.    { return (CEnrollDoc*)m_pDocument; }
  68. #endif
  69.  
  70. /////////////////////////////////////////////////////////////////////////////
  71.