Account.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. class Account : public CFormView
  14. {
  15. CArray<CStringArray, CStringArray>m_List1array;
  16. BOOL m_bAddNew;
  17. protected:
  18. Account(); // protected constructor used by dynamic creation
  19. DECLARE_DYNCREATE(Account)
  20. // Form Data
  21. public:
  22. //{{AFX_DATA(Account)
  23. enum { IDD = IDD_DLGAccount };
  24. CComboBox m_comboname;
  25. CSortListCtrl2 m_List1;
  26. CStatic m_static1;
  27. CString m_account;
  28. CString m_psw;
  29. CString m_psw2;
  30. //}}AFX_DATA
  31. // Attributes
  32. public:
  33. // Operations
  34. public:
  35. void SetRights(CString rights);
  36. CString GetRights();
  37. BOOL IsExist(CString account,CString name);
  38. void GetData();
  39. void ListSelChange();
  40. void ClearCtrl();
  41. void FillGrid();
  42. // Overrides
  43. // ClassWizard generated virtual function overrides
  44. //{{AFX_VIRTUAL(Account)
  45. public:
  46. virtual void OnInitialUpdate();
  47. protected:
  48. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  49. //}}AFX_VIRTUAL
  50. // Implementation
  51. protected:
  52. virtual ~Account();
  53. #ifdef _DEBUG
  54. virtual void AssertValid() const;
  55. virtual void Dump(CDumpContext& dc) const;
  56. #endif
  57. // Generated message map functions
  58. //{{AFX_MSG(Account)
  59. afx_msg void OnBUTsave();
  60. afx_msg void OnBUTdel();
  61. afx_msg void OnBUTclose();
  62. afx_msg void OnClickList2(NMHDR* pNMHDR, LRESULT* pResult);
  63. afx_msg void OnBUTadd();
  64. afx_msg void OnBUTbm1();
  65. afx_msg void OnBUTbm6();
  66. afx_msg void OnBUTbm2();
  67. afx_msg void OnBUTbm3();
  68. afx_msg void OnBUTbm4();
  69. afx_msg void OnBUTbm5();
  70. //}}AFX_MSG
  71. DECLARE_MESSAGE_MAP()
  72. };
  73. /////////////////////////////////////////////////////////////////////////////
  74. //{{AFX_INSERT_LOCATION}}
  75. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  76. #endif // !defined(AFX_Account_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)