#pragma once #include "MyBttom.h" // CDlgAuthorityMgr 对话框 //权限管理 class CDlgAuthorityMgr : public CDialogEx { DECLARE_DYNAMIC(CDlgAuthorityMgr) public: CDlgAuthorityMgr(CWnd* pParent = NULL); // 标准构造函数 virtual ~CDlgAuthorityMgr(); void RefreashAuthority(); // 对话框数据 enum { IDD = IDD_AUTHORITY_MGR }; private: CString m_CurAuthority;//当前权限 CString m_CurUser; CString m_Name; CString m_PassWord; CMyBttom m_LoginBtn; CMyBttom m_LockBtn; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 virtual BOOL OnInitDialog(); DECLARE_MESSAGE_MAP() public: afx_msg BOOL PreTranslateMessage(MSG* pMsg); afx_msg void OnBnClickedLogin(); afx_msg void OnBnClickedLock(); };