PAGE1.H
上传用户:sanlisteel
上传日期:2008-06-19
资源大小:98k
文件大小:2k
源码类别:

数据库系统

开发平台:

C/C++

  1. #if !defined(AFX_PAGE1_H__6BF5A502_AC39_4561_9200_66FD6AB779A7__INCLUDED_)
  2. #define AFX_PAGE1_H__6BF5A502_AC39_4561_9200_66FD6AB779A7__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // Page1.h : header file
  7. //
  8. #include "MyRecordset.h"
  9. #include "newedit.h"
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CPage1 dialog
  12. class CPage1 : public CPropertyPage
  13. {
  14. DECLARE_DYNCREATE(CPage1)
  15. // Construction
  16. public:
  17. CBrush m_brush;
  18. CPage1();
  19. ~CPage1();
  20.     CDatabase*  m_database;
  21. CMyRecordset* m_pSet;
  22. // Dialog Data
  23. //{{AFX_DATA(CPage1)
  24. enum { IDD = IDD_DETAIL_DIALOG };
  25. CNewEdit m_edittelphone;
  26. CNewEdit m_editsex;
  27. CNewEdit m_editrelation;
  28. CNewEdit m_editposition;
  29. CNewEdit m_editpager;
  30. CNewEdit m_editname;
  31. CNewEdit m_editmobile;
  32. CNewEdit m_editintroduction;
  33. CNewEdit m_editemail;
  34. CNewEdit m_editcompany;
  35. CNewEdit m_editage;
  36. CNewEdit m_editaddress;
  37. CString m_address;
  38. CString m_company;
  39. CString m_email;
  40. CString m_introduction;
  41. CString m_mobile;
  42. CString m_name;
  43. CString m_pager;
  44. CString m_position;
  45. CString m_relation;
  46. CString m_sex;
  47. CString m_telphone;
  48. int m_age;
  49. //}}AFX_DATA
  50. // Overrides
  51. // ClassWizard generate virtual function overrides
  52. //{{AFX_VIRTUAL(CPage1)
  53. protected:
  54. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  55. //}}AFX_VIRTUAL
  56. // Implementation
  57. protected:
  58. // Generated message map functions
  59. //{{AFX_MSG(CPage1)
  60. virtual BOOL OnInitDialog();
  61. afx_msg void OnNext();
  62. afx_msg void OnFirst();
  63. afx_msg void OnLast();
  64. afx_msg void OnPrev();
  65. afx_msg void OnEditrecord();
  66. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  67. afx_msg void OnAppendrecord();
  68. afx_msg void OnDeleterecord();
  69. //}}AFX_MSG
  70. DECLARE_MESSAGE_MAP()
  71. private:
  72. BOOL isEmpty();
  73. void SetNoRecordBtnState();
  74.     BOOL isEdit;
  75. BOOL isAppend;
  76. void ClearEditText();
  77. void SetButtonText(BOOL blSet);
  78. void SetNavButtonVisible(int isVisible);
  79. void SetEditReadOnly(BOOL isReadOnly);
  80. void SetValue();
  81. void SetButtonState();
  82. void GetValue();
  83. BOOL IsFirstRecord();
  84.     BOOL IsLastRecord();
  85. };
  86. //{{AFX_INSERT_LOCATION}}
  87. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  88. #endif // !defined(AFX_PAGE1_H__6BF5A502_AC39_4561_9200_66FD6AB779A7__INCLUDED_)