studentdlg.h

来自「本代码主要介绍如何利用Visual C++实现学生成绩管理系统。使用本系统」· C头文件 代码 · 共 70 行

H
70
字号
#if !defined(AFX_STUDENTDLG_H__C718E4D9_823D_434F_86A8_619E7E156C26__INCLUDED_)
#define AFX_STUDENTDLG_H__C718E4D9_823D_434F_86A8_619E7E156C26__INCLUDED_

#include "StudentSet.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// StudentDlg.h : header file
//

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

class CStudentDlg : public CDialog
{
// Construction
public:
	void ResetButton();
	CStudentSet m_studentSet;
	CButton* femaleRadio;
	CButton* maleRadio;
	void RefreshList();
	virtual BOOL OnInitDialog();
	CRecordset m_recordSet;
	CDatabase m_database;
	CStudentDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CStudentDlg)
	enum { IDD = IDD_STUDENT };
	CEdit	m_strNo;
	CEdit	m_strPhone;
	CEdit	m_strName;
	CComboBox	m_strAge;
	CEdit	m_strAddress;
	CListCtrl	m_list;
	CButton	m_bEdit;
	CButton	m_bDel;
	CButton	m_bConfirm;
	CButton	m_bAdd;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CStudentDlg)
	afx_msg void OnStudentAdd();
	afx_msg void OnClickListStudent(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnStudentEdit();
	afx_msg void OnStudentDel();
	afx_msg void OnStudentConfirm();
	virtual void OnCancel();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_STUDENTDLG_H__C718E4D9_823D_434F_86A8_619E7E156C26__INCLUDED_)

⌨️ 快捷键说明

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