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

📄 studentdlg.h

📁 学生成绩管理系统 使用C++语言加access数据库的一个小型软件
💻 H
字号:
// StudentDlg.h : header file
//
//{{AFX_INCLUDES()
#include "msflexgrid.h"
//}}AFX_INCLUDES
#include <string>
#include <fstream>
#include <time.h>
using namespace std;
#include "StudentList.h"

#if !defined(AFX_STUDENTDLG_H__C922DB95_97CD_4536_8C97_E194CEC07C60__INCLUDED_)
#define AFX_STUDENTDLG_H__C922DB95_97CD_4536_8C97_E194CEC07C60__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CStudentDlg dialog

class CStudentDlg : public CDialog
{
// Construction
public:
	CStudentDlg(CWnd* pParent = NULL);	// standard constructor
	
	// Dialog Data
	//{{AFX_DATA(CStudentDlg)
	enum { IDD = IDD_STUDENT_DIALOG };
	CButton	m_Locate;
	CButton	m_Delete;
	CButton	m_Update;
	CButton	m_Insert;
	CButton	m_Sort;
	CComboBox	m_Class;
	CComboBox	m_Course;
	CComboBox	m_Period;
	CString	m_ID;
	CString	m_Name;
	CMSFlexGrid	m_Grid;
	float	m_Exercise;
	float	m_Report;
	float	m_Midterm;
	float	m_Terminal;
	float	m_Mark;
	float	m_Average;
	float	m_StdDev;
	int		m_CountA;
	int		m_CountE;
	CString	m_Time;
	CString	m_Userid;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;
	StudentList m_studentlist;							// 声明学生线性表
//	CDatabase m_database;								// 声明数据库对象
	void UpdateGrid();									// 声明表格刷新函数

	// Generated message map functions
	//{{AFX_MSG(CStudentDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSelchangeComboClass();
	afx_msg void OnSelchangeComboPeriod();
	afx_msg void OnButtonExit();
	afx_msg void OnButtonSort();
	afx_msg void OnSelchangeComboCourse();
	afx_msg void OnButtonClac();
	afx_msg void OnButtonInsert();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnButtonDelete();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnClickMsflexgrid();
	afx_msg void OnChangeEditExercise();
	afx_msg void OnChangeEditMidterm();
	afx_msg void OnChangeEditReport();
	afx_msg void OnChangeEditTerminal();
	afx_msg void OnButtonUpdate();
	afx_msg void OnButtonUserman();
	afx_msg void OnButtonLocate();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	ADODB::_RecordsetPtr m_pRecordset_Std;
	ADODB::_ConnectionPtr m_pConnection_Std;

	
};

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

#endif // !defined(AFX_STUDENTDLG_H__C922DB95_97CD_4536_8C97_E194CEC07C60__INCLUDED_)

⌨️ 快捷键说明

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