home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / dbmsg / ado / employee / empdlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-12-13  |  1.5 KB  |  69 lines

  1. // EmpDlg.h : header file
  2. //
  3.  
  4. #include "EmpBiz.h"
  5.  
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CEmpDlg dialog
  8.  
  9. class CEmpDlg : public CDialog
  10. {
  11. // Construction
  12. public:
  13.     CEmpDlg(CWnd* pParent = NULL);    // standard constructor
  14.     ~CEmpDlg();
  15.  
  16. // Dialog Data
  17.     //{{AFX_DATA(CEmpDlg)
  18.     enum { IDD = IDD_EMP_DIALOG };
  19.     long    m_nEmpNum;
  20.     CString    m_strFirstName;
  21.     CString    m_strHomePhone;
  22.     CString    m_strLastName;
  23.     CString    m_strTitle;
  24.     //}}AFX_DATA
  25.  
  26.     // ClassWizard generated virtual function overrides
  27.     //{{AFX_VIRTUAL(CEmpDlg)
  28.     protected:
  29.     virtual void DoDataExchange(CDataExchange* pDX);
  30.     //}}AFX_VIRTUAL
  31.  
  32. // Operations
  33. public:
  34.     BOOL CommitAlteredEmpRec();    
  35.     void SetFieldStates() ;
  36.     CString PrepareCriteria();
  37.  
  38.  
  39.  
  40. // Implementation
  41. protected:
  42.     HICON        m_hIcon;
  43.     CEmpBiz*    m_pBiz;
  44.  
  45.     // Generated message map functions
  46.     //{{AFX_MSG(CEmpDlg)
  47.     virtual BOOL OnInitDialog();
  48.     afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  49.     afx_msg void OnPaint();
  50.     afx_msg HCURSOR OnQueryDragIcon();
  51.     afx_msg void OnEditAdd();
  52.     afx_msg void OnEditDelete();
  53.     afx_msg void OnEditNext();
  54.     afx_msg void OnEditPrevious();
  55.     afx_msg void OnEditFirst();
  56.     afx_msg void OnEditLast();
  57.     afx_msg void OnEditFindF();
  58.     afx_msg void OnAppOpenRecord();
  59.     //}}AFX_MSG
  60.     DECLARE_MESSAGE_MAP()
  61. };
  62.  
  63.  
  64. #define EMP_EMPLOYEE_ID        L"EmployeeID"
  65. #define    EMP_LAST_NAME        L"LastName"
  66. #define    EMP_FIRST_NAME        L"FirstName"
  67. #define EMP_TITLE            L"Title"
  68. #define EMP_HOME_PHONE        L"HomePhone"
  69.