home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c08 / lab02 / ex01 / employeeview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  2.1 KB  |  75 lines

  1. // EmployeeView.h : interface of the CEmployeeView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_EMPLOYEEVIEW_H__E708A686_460C_11D0_9C9D_00A0D100E3C8__INCLUDED_)
  6. #define AFX_EMPLOYEEVIEW_H__E708A686_460C_11D0_9C9D_00A0D100E3C8__INCLUDED_
  7.  
  8. class CEmployeePaySet;
  9.  
  10. class CEmployeeView : public CDaoRecordView
  11. {
  12. protected: // create from serialization only
  13.     CEmployeeView();
  14.     DECLARE_DYNCREATE(CEmployeeView)
  15.  
  16. public:
  17.     //{{AFX_DATA(CEmployeeView)
  18.     enum { IDD = IDD_EMPLOYEE_FORM };
  19.     CEmployeePaySet* m_pSet;
  20.     CEmployeePersonalSet* m_pEmplInfoSet;
  21.     //}}AFX_DATA
  22.  
  23. // Attributes
  24. public:
  25.     CEmployeeDoc* GetDocument();
  26.  
  27. // Operations
  28. public:
  29.  
  30. // Overrides
  31.     // ClassWizard generated virtual function overrides
  32.     //{{AFX_VIRTUAL(CEmployeeView)
  33.     public:
  34.     virtual CDaoRecordset* OnGetRecordset();
  35.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  36.     virtual BOOL OnMove(UINT nIDMoveCommand);
  37.     virtual void OnInitialUpdate();
  38.     protected:
  39.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  40.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  41.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  42.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  43.     //}}AFX_VIRTUAL
  44.  
  45. // Implementation
  46. public:
  47.     virtual ~CEmployeeView();
  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(CEmployeeView)
  58.         // NOTE - the ClassWizard will add and remove member functions here.
  59.         //    DO NOT EDIT what you see in these blocks of generated code !
  60.     //}}AFX_MSG
  61.     DECLARE_MESSAGE_MAP()
  62. };
  63.  
  64. #ifndef _DEBUG  // debug version in EmployeeView.cpp
  65. inline CEmployeeDoc* CEmployeeView::GetDocument()
  66.    { return (CEmployeeDoc*)m_pDocument; }
  67. #endif
  68.  
  69. /////////////////////////////////////////////////////////////////////////////
  70.  
  71. //{{AFX_INSERT_LOCATION}}
  72. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  73.  
  74. #endif // !defined(AFX_EMPLOYEEVIEW_H__E708A686_460C_11D0_9C9D_00A0D100E3C8__INCLUDED_)
  75.