home *** CD-ROM | disk | FTP | other *** search
- // DAOEMvw.h : interface of the CDAOEMPView class
- //
- /////////////////////////////////////////////////////////////////////////////
-
- class CCntrItem;
-
- class CDAOEMPView : public CFormView
- {
- protected: // create from serialization only
- CDAOEMPView();
- DECLARE_DYNCREATE(CDAOEMPView)
-
- // Attributes
- public:
- CDAOEMPDoc* GetDocument();
-
- protected:// Declare members for the employee table columns we will use
- //{{AFX_DATA(CDAOEMPView)
- enum { IDD = IDD_MAINFORM };
- long m_nEmpNum;
- CString m_strFirstName;
- CString m_strHomePhone;
- CString m_strLastName;
- CString m_strNotes;
- COleDateTime m_HireDate;
- //}}AFX_DATA
-
- COleVariant m_Picture;
-
- CCntrItem *m_pSelection;
- // Operations
- public:
- BOOL CommitAlteredEmpRec();
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDAOEMPView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual void OnInitialUpdate();
- protected:
- virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
- virtual void DoDataExchange(CDataExchange* pDX);
- //}}AFX_VIRTUAL
-
-
- // Implementation
- public:
- virtual ~CDAOEMPView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
-
- protected:
- void SetFieldStates() ;
-
- // Generated message map functions
- protected:
- //{{AFX_MSG(CDAOEMPView)
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
-
- #ifndef _DEBUG // debug version in DAOEMvw.cpp
- inline CDAOEMPDoc* CDAOEMPView::GetDocument()
- { return (CDAOEMPDoc*)m_pDocument; }
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
-