#if !defined(AFX_Account_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_) #define AFX_Account_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // Account.h : header file // ///////////////////////////////////////////////////////////////////////////// // Account form view #ifndef __AFXEXT_H__ #include #endif #include "MyFormView.h" /* #ifdef BASIC_VERSION enum { IDD = IDD_DLGAccount2 }; #else enum { IDD = IDD_DLGAccount }; #endif*/ /** * 控件随窗口变化的控制单元 **/ // 用户管理view窗体; class Account : public MyFormView { CStringArray m_strNameArray; // Jeff:没有注册账号的姓名; CArraym_List1arrayBak; CArraym_List1array; BOOL m_bAddNew; protected: Account(); // protected constructor used by dynamic creation DECLARE_DYNCREATE(Account) // Form Data public: //{{AFX_DATA(Account) enum { IDD = IDD_DLGAccount }; CSpinButtonCtrl m_spin1; CComboBox m_comboname; // 用户姓名下拉框; CSortListCtrl2 m_List1; CStatic m_static1; CString m_account; CString m_psw; CString m_psw2; CString m_discount; CString m_discount2; //}}AFX_DATA // Attributes public: // Operations public: void CommboboxReLoad(); void SetRights(CString rights); CString GetRights(); BOOL IsExist(CString account,CString name); void GetData(); void ListSelChange(); void ClearCtrl(); void FillGrid(); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(Account) public: virtual void OnInitialUpdate(); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: virtual ~Account(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif // Generated message map functions //{{AFX_MSG(Account) afx_msg void OnBUTsave(); afx_msg void OnBUTdel(); afx_msg void OnBUTclose(); afx_msg void OnClickList2(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnBUTadd(); afx_msg void OnBUTbm1(); afx_msg void OnBUTbm6(); afx_msg void OnBUTbm2(); afx_msg void OnBUTbm3(); afx_msg void OnBUTbm4(); afx_msg void OnBUTbm5(); afx_msg void OnBUTleftbar(); afx_msg void OnCheck27(); afx_msg void OnBnClickedResetpwBtn(); //}}AFX_MSG DECLARE_MESSAGE_MAP() //static CRect m_rct; INT m_nPurviewCounts; static BOOL CALLBACK EnumChildProc_Accout(HWND hwnd, LPARAM lParam); }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_Account_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)