DteailDlg.h
上传用户:cuijiu615
上传日期:2007-03-28
资源大小:45k
文件大小:2k
源码类别:

家庭/个人应用

开发平台:

Visual C++

  1. #if !defined(AFX_DTEAILDLG_H__A6D6ADE9_4BFE_4805_9AD1_D57A2CFD646D__INCLUDED_)
  2. #define AFX_DTEAILDLG_H__A6D6ADE9_4BFE_4805_9AD1_D57A2CFD646D__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // DteailDlg.h : header file
  7. //
  8. #include "NewEdit.h"
  9. #include "MyRecordset.h"
  10. /////////////////////////////////////////////////////////////////////////////
  11. // DteailDlg dialog
  12. class DteailDlg : public CDialog
  13. {
  14. // Construction
  15. public:
  16. UINT Find(CString str,int ID,bool &re);
  17. BOOL isAppend;
  18. BOOL isEdit;
  19. void EditRecord(bool used);
  20. void DelRecord();
  21. void NewRecord();
  22. void SetEditReadOnly(BOOL isReadOnly);
  23. bool IsLastRecord();
  24. bool IsFirstRecord();
  25. void SetValue();
  26. void ClearEditText();
  27. int GetNUM();
  28. void GetValue();
  29. void ShowDetail(int nIndex);
  30. DteailDlg(CWnd* pParent = NULL);   // standard constructor
  31. // Dialog Data
  32. //{{AFX_DATA(DteailDlg)
  33. enum { IDD = IDD_DETAIL };
  34. CNewEdit m_editcode;
  35. CNewEdit m_editmobile;
  36. CNewEdit m_editposition;
  37. CNewEdit m_editcompany;
  38. CNewEdit m_editsex;
  39. CNewEdit m_editrelation;
  40. CNewEdit m_edittelphone;
  41. CNewEdit m_editaddress;
  42. CNewEdit m_editname;
  43. CNewEdit m_editintroduction;
  44. CNewEdit m_editemail;
  45. CNewEdit m_editage;
  46. int m_age;
  47. CString m_email;
  48. CString m_introduction;
  49. CString m_position;
  50. CString m_mobile;
  51. CString m_name;
  52. CString m_telphone;
  53. CString m_address;
  54. CString m_relation;
  55. CString m_sex;
  56. CString m_company;
  57. CString m_code;
  58. //}}AFX_DATA
  59. // Overrides
  60. // ClassWizard generated virtual function overrides
  61. //{{AFX_VIRTUAL(DteailDlg)
  62. public:
  63. virtual BOOL DestroyWindow();
  64. protected:
  65. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  66. //}}AFX_VIRTUAL
  67. CMyRecordset* m_pSet;
  68. CDatabase* m_database;
  69. // Implementation
  70. protected:
  71. // Generated message map functions
  72. //{{AFX_MSG(DteailDlg)
  73. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  74. virtual BOOL OnInitDialog();
  75. //}}AFX_MSG
  76. DECLARE_MESSAGE_MAP()
  77. private:
  78. CBrush m_brush;
  79. };
  80. //{{AFX_INSERT_LOCATION}}
  81. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  82. #endif // !defined(AFX_DTEAILDLG_H__A6D6ADE9_4BFE_4805_9AD1_D57A2CFD646D__INCLUDED_)