home *** CD-ROM | disk | FTP | other *** search
/ Supercompiler 1997 / SUPERCOMPILER97.iso / MS_DAO.SDK / DISK4 / DAOSDK.1 / daoemvw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-07  |  1.6 KB  |  71 lines

  1. // DAOEMvw.h : interface of the CDAOEMPView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CCntrItem;
  6.  
  7. class CDAOEMPView : public CFormView
  8. {
  9. protected: // create from serialization only
  10.     CDAOEMPView();
  11.     DECLARE_DYNCREATE(CDAOEMPView)
  12.  
  13. // Attributes
  14. public:
  15.     CDAOEMPDoc* GetDocument();
  16.  
  17. protected:// Declare members for the employee table columns we will use
  18.     //{{AFX_DATA(CDAOEMPView)
  19.     enum { IDD = IDD_MAINFORM };
  20.     long            m_nEmpNum;
  21.     CString            m_strFirstName;
  22.     CString            m_strHomePhone;
  23.     CString            m_strLastName;
  24.     CString            m_strNotes;
  25.     COleDateTime    m_HireDate;
  26.     //}}AFX_DATA
  27.  
  28.     COleVariant        m_Picture;
  29.  
  30.     CCntrItem        *m_pSelection;
  31. // Operations
  32. public:
  33.     BOOL CommitAlteredEmpRec();
  34.  
  35. // Overrides
  36.     // ClassWizard generated virtual function overrides
  37.     //{{AFX_VIRTUAL(CDAOEMPView)
  38.     public:
  39.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  40.     virtual void OnInitialUpdate();
  41.     protected:
  42.     virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
  43.     virtual void DoDataExchange(CDataExchange* pDX);
  44.     //}}AFX_VIRTUAL
  45.  
  46.  
  47. // Implementation
  48. public:
  49.     virtual ~CDAOEMPView();
  50. #ifdef _DEBUG
  51.     virtual void AssertValid() const;
  52.     virtual void Dump(CDumpContext& dc) const;
  53. #endif
  54.  
  55. protected:
  56.     void SetFieldStates() ;
  57.  
  58. // Generated message map functions
  59. protected:
  60.     //{{AFX_MSG(CDAOEMPView)
  61.     //}}AFX_MSG
  62.     DECLARE_MESSAGE_MAP()
  63. };
  64.  
  65. #ifndef _DEBUG  // debug version in DAOEMvw.cpp
  66. inline CDAOEMPDoc* CDAOEMPView::GetDocument()
  67.    { return (CDAOEMPDoc*)m_pDocument; }
  68. #endif
  69.  
  70. /////////////////////////////////////////////////////////////////////////////
  71.