Account.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. #if !defined(AFX_Account_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)
  2. #define AFX_Account_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // Account.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // Account form view
  10. #ifndef __AFXEXT_H__
  11. #include <afxext.h>
  12. #endif
  13. #include "MyFormView.h"
  14. // 用户管理view窗体;
  15. class Account : public MyFormView
  16. {
  17. CStringArray m_strNameArray; // Jeff:没有注册账号的姓名;
  18. CArray<CStringArray, CStringArray>m_List1arrayBak;
  19. CArray<CStringArray, CStringArray>m_List1array;
  20. BOOL m_bAddNew;
  21. protected:
  22. Account(); // protected constructor used by dynamic creation
  23. DECLARE_DYNCREATE(Account)
  24. // Form Data
  25. public:
  26. //{{AFX_DATA(Account)
  27. enum { IDD = IDD_DLGAccount };
  28. CSpinButtonCtrl m_spin1;
  29. CComboBox m_comboname; // 用户姓名下拉框;
  30. CSortListCtrl2 m_List1;
  31. CStatic m_static1;
  32. CString m_account;
  33. CString m_psw;
  34. CString m_psw2;
  35. CString m_discount;
  36. CString m_discount2;
  37. //}}AFX_DATA
  38. // Attributes
  39. public:
  40. // Operations
  41. public:
  42. void CommboboxReLoad();
  43. void SetRights(CString rights);
  44. CString GetRights();
  45. BOOL IsExist(CString account,CString name);
  46. void GetData();
  47. void ListSelChange();
  48. void ClearCtrl();
  49. void FillGrid();
  50. // Overrides
  51. // ClassWizard generated virtual function overrides
  52. //{{AFX_VIRTUAL(Account)
  53. public:
  54. virtual void OnInitialUpdate();
  55. protected:
  56. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  57. //}}AFX_VIRTUAL
  58. // Implementation
  59. protected:
  60. virtual ~Account();
  61. #ifdef _DEBUG
  62. virtual void AssertValid() const;
  63. virtual void Dump(CDumpContext& dc) const;
  64. #endif
  65. // Generated message map functions
  66. //{{AFX_MSG(Account)
  67. afx_msg void OnBUTsave();
  68. afx_msg void OnBUTdel();
  69. afx_msg void OnBUTclose();
  70. afx_msg void OnClickList2(NMHDR* pNMHDR, LRESULT* pResult);
  71. afx_msg void OnBUTadd();
  72. afx_msg void OnBUTbm1();
  73. afx_msg void OnBUTbm6();
  74. afx_msg void OnBUTbm2();
  75. afx_msg void OnBUTbm3();
  76. afx_msg void OnBUTbm4();
  77. afx_msg void OnBUTbm5();
  78. afx_msg void OnBUTleftbar();
  79. afx_msg void OnCheck27();
  80. afx_msg void OnBnClickedResetpwBtn();
  81. //}}AFX_MSG
  82. DECLARE_MESSAGE_MAP()
  83. //static CRect m_rct;
  84. static BOOL CALLBACK EnumChildProc_Accout(HWND hwnd, LPARAM lParam);
  85. };
  86. /////////////////////////////////////////////////////////////////////////////
  87. //{{AFX_INSERT_LOCATION}}
  88. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  89. #endif // !defined(AFX_Account_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)