stmangedlg.h

来自「学校社团管理系统Visual C」· C头文件 代码 · 共 74 行

H
74 行
字号
/**
 * <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_STMANGEDLG_H__7F753A59_8328_4F0B_962C_643EEDD8E2FD__INCLUDED_)
#define AFX_STMANGEDLG_H__7F753A59_8328_4F0B_962C_643EEDD8E2FD__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// StMangeDlg.h : header file
//
#include "ActionFactory.h"
#include "AddStMsgRSet.h"
#include "STInfoDlg.h"
/////////////////////////////////////////////////////////////////////////////
// CStMangeDlg dialog

class CStMangeDlg : public CDialog
{
// Construction
public:
	CStMangeDlg(CWnd* pParent = NULL);   // standard constructor
    CDatabase m_database; // 声明数据库对象
	CString	m_username; // 主窗口显示登陆上来的的用户名称
	void RefreshData(CString strSQL); // 进行操作后刷新通知信息
	void RefreshStList(); // 刷新社团下拉选项
	void RefreshResultList(Action* stAction); // 刷新结果列表
// Dialog Data
	//{{AFX_DATA(CStMangeDlg)
	enum { IDD = IDD_DIALOG_ST };
	CButton	m_bntNew; // 增加按钮
	CButton	m_bntModify; // 修改按钮
	CButton	m_bntDelete; // 删除按钮
	CListCtrl	m_ctrList; // 学生信息列表
	CComboBox	m_ctrST; // 社团下拉选项
	CString	m_strST; // 所选择的社团
	BOOL m_bIsAdmin; // 是否是管理员
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CStMangeDlg)
	virtual BOOL OnInitDialog(); // 初始化此窗口的方法
	afx_msg void OnButtonNew(); // 点击增加按钮
	afx_msg void OnModifyST(); // 点击修改按钮
	afx_msg void OnButtonSearch(); // 点击查询按钮
	afx_msg void OnButtonBrowse(); // 点击查看按钮
	afx_msg void OnButtonDelete(); // 点击删除按钮
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_STMANGEDLG_H__7F753A59_8328_4F0B_962C_643EEDD8E2FD__INCLUDED_)

⌨️ 快捷键说明

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