⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userdlg.h

📁 学校社团管理系统Visual C
💻 H
字号:
/**
 * <p> Title: 用户设置功能的窗口类 </p>
 * <p> Description:提供对用户的增删改查等功能 </p>
 * <p> Copyright: Copyright (c) 2005-12-17 </p>
 * <p> Company: bjut </p>
 * @author gaok
 * @version 1.0 
 * @Created on 2005-12-17
 */
#if !defined(AFX_USERDLG_H__7AAB5336_D810_4057_A232_7F6B9B948A6E__INCLUDED_)
#define AFX_USERDLG_H__7AAB5336_D810_4057_A232_7F6B9B948A6E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// UserDlg.h : header file
//
#include "Variable.h"
#include "UserAction.h"
/////////////////////////////////////////////////////////////////////////////
// CUserDlg dialog

class CUserDlg : public CDialog
{
// Construction
public:
	CUserDlg(CWnd* pParent = NULL);   // standard constructor
    CString	m_username; // 主窗口显示登陆上来的的用户名称
	BOOL m_IsAdmin; // 是否是管理员
// Dialog Data
	//{{AFX_DATA(CUserDlg)
	enum { IDD = IDD_DIALOG_USER_MANGE };
	CButton	m_bntOK; // 确定按钮对象
	CButton	m_bntNew; // 增加按钮对象
	CButton	m_bntDelete; // 删除按钮对象
	CButton	m_bntCancel; // 取消按钮对象
	CEdit	m_ctrPass; // 密码编辑框
	CEdit	m_ctrUser; // 用户名编辑框
	CListCtrl	m_ctrList; // 用户列表
	CButton m_ctrIsAdmin; // 是否是管理员的checkbox对象
	BOOL	m_bIsAdmin; // 是否是管理员
	CString	m_strUser; // 用户名
	CString	m_strPass; // 密码
	CString	m_strRePass; // 确认密码
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CUserDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CUserDlg)
	virtual BOOL OnInitDialog(); // 初始化
	afx_msg void OnClickListUsername(NMHDR* pNMHDR, LRESULT* pResult); // 点击某一用户名
	afx_msg void OnButtonNew(); // 增加用户名
	afx_msg void OnButtonDelete(); // 删除用户名
	virtual void OnOK(); // 确定
	afx_msg void OnButtonCancel(); // 点击取消按钮
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
		void RefreshData(); // 进行操作后刷新用户列表
		CDatabase m_database; // 声明数据库对象
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_USERDLG_H__7AAB5336_D810_4057_A232_7F6B9B948A6E__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -