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

📄 dlgstatistics.cpp

📁 学生成绩管理系统
💻 CPP
字号:
// DlgStatistics.cpp : implementation file
//

#include "stdafx.h"
#include "Student.h"
#include "DlgStatistics.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

extern BOOL DlgExist;

/////////////////////////////////////////////////////////////////////////////
// CDlgStatistics dialog

CDlgStatistics::CDlgStatistics(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgStatistics::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgStatistics)
	m_Average = 0.0f;
	m_StdDev = 0.0f;
	m_ID = _T("");
	m_Name = _T("");
	m_Exercise = 0.0f;
	m_Report = 0.0f;
	m_Midterm = 0.0f;
	m_Terminal = 0.0f;
	m_Mark = 0.0f;
	//}}AFX_DATA_INIT
	DlgExist = true;
}

void CDlgStatistics::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgStatistics)
	DDX_Control(pDX, IDC_LIST_DISTRIB, m_Distrib);
	DDX_Text(pDX, IDC_EDIT_AVERAGE, m_Average);
	DDX_Text(pDX, IDC_EDIT_STDDEV, m_StdDev);
	DDX_Text(pDX, IDC_EDIT_ID, m_ID);
	DDX_Text(pDX, IDC_EDIT_NAME, m_Name);
	DDX_Text(pDX, IDC_EDIT_EXERCISE, m_Exercise);
	DDX_Text(pDX, IDC_EDIT_REPORT, m_Report);
	DDX_Text(pDX, IDC_EDIT_MIDTERM, m_Midterm);
	DDX_Text(pDX, IDC_EDIT_TERMINAL, m_Terminal);
	DDX_Text(pDX, IDC_EDIT_MARK, m_Mark);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgStatistics, CDialog)
	//{{AFX_MSG_MAP(CDlgStatistics)
	ON_WM_CLOSE()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgStatistics message handlers

void CDlgStatistics::OnClose() 
{
	// TODO: Add your message handler code here and/or call default
	DestroyWindow();
	delete this;
	DlgExist = false;
}

⌨️ 快捷键说明

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