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 / addform.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  715b  |  32 lines

  1. // addform.h : interface of the CAddForm class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CAddForm : public CRecordView
  6. {
  7. protected:
  8.     CAddForm(UINT nIDTemplate);
  9.     DECLARE_DYNAMIC(CAddForm)
  10.  
  11. protected:
  12.     BOOL m_bAddMode;
  13.  
  14. // Operations
  15. public:
  16.     virtual BOOL OnMove(UINT nIDMoveCommand);
  17.     virtual BOOL RecordAdd();
  18.     virtual BOOL RecordRefresh();
  19.     virtual BOOL RecordDelete();
  20.  
  21. // Implementation
  22. public:
  23.     virtual ~CAddForm();
  24. // Generated message map functions
  25. protected:
  26.     afx_msg void OnRecordAdd();
  27.     afx_msg void OnRecordRefresh();
  28.     afx_msg void OnRecordDelete();
  29.     afx_msg void OnUpdateRecordFirst(CCmdUI* pCmdUI);
  30.     DECLARE_MESSAGE_MAP()
  31. };
  32.