UserDlg.h
上传用户:rs600066
上传日期:2017-10-16
资源大小:4788k
文件大小:2k
源码类别:

数据库系统

开发平台:

Visual C++

  1. #if !defined(AFX_USERDLG_H__BDD8A8A2_39A0_4A63_901C_08359A7BD892__INCLUDED_)
  2. #define AFX_USERDLG_H__BDD8A8A2_39A0_4A63_901C_08359A7BD892__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // UserDlg.h : header file
  7. //
  8. #include "UserSet.h"
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CUserDlg dialog
  11. class CUserDlg : public CDialog
  12. {
  13. // Construction
  14. public:
  15. CUserDlg(CWnd* pParent = NULL);   // standard constructor
  16. // Dialog Data
  17. //{{AFX_DATA(CUserDlg)
  18. enum { IDD = IDD_DIALOG_USER };
  19. CButton m_bntOK;
  20. CButton m_bntNew;
  21. CButton m_bntDelete;
  22. CButton m_bntCancel;
  23. CEdit m_ctrPass;
  24. CEdit m_ctrUser;
  25. CListCtrl m_ctrList;
  26. BOOL m_bIsAdmin;
  27. CString m_strUser;
  28. CString m_strPass;
  29. CString m_strRePass;
  30. //}}AFX_DATA
  31. // Overrides
  32. // ClassWizard generated virtual function overrides
  33. //{{AFX_VIRTUAL(CUserDlg)
  34. protected:
  35. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  36. //}}AFX_VIRTUAL
  37. // Implementation
  38. protected:
  39. // Generated message map functions
  40. //{{AFX_MSG(CUserDlg)
  41. virtual BOOL OnInitDialog();
  42. afx_msg void OnClickListUsername(NMHDR* pNMHDR, LRESULT* pResult);
  43. afx_msg void OnButtonNew();
  44. afx_msg void OnButtonDelete();
  45. virtual void OnOK();
  46. afx_msg void OnButtonCancel();
  47. //}}AFX_MSG
  48. DECLARE_MESSAGE_MAP()
  49. private:
  50. void RefreshData();
  51. CUserSet m_recordset ;
  52. };
  53. //{{AFX_INSERT_LOCATION}}
  54. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  55. #endif // !defined(AFX_USERDLG_H__BDD8A8A2_39A0_4A63_901C_08359A7BD892__INCLUDED_)