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

📄 scoreview.cpp

📁 VC大作业
💻 CPP
字号:
// ScoreView.cpp : implementation file
//

#include "stdafx.h"
#include "member.h"
#include "ScoreView.h"
#include "ScoreDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CScoreView

IMPLEMENT_DYNCREATE(CScoreView, CFormView)

CScoreView::CScoreView()
	: CFormView(CScoreView::IDD)
{
	//{{AFX_DATA_INIT(CScoreView)
	m_CourseID = _T("");
	m_CourseName = _T("");
	m_CourseScore = 0;
	m_Score = 0;
	//}}AFX_DATA_INIT
}

CScoreView::~CScoreView()
{
}

void CScoreView::DoDataExchange(CDataExchange* pDX)
{
	CFormView::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CScoreView)
	DDX_Control(pDX, IDC_LIST_SCORE, m_list);
	DDX_Text(pDX, IDC_COURSE_ID, m_CourseID);
	DDX_Text(pDX, IDC_COURSE_NAME, m_CourseName);
	DDX_Text(pDX, IDC_COURSE_SCORE, m_CourseScore);
	DDX_Text(pDX, IDC_SCORE, m_Score);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CScoreView, CFormView)
	//{{AFX_MSG_MAP(CScoreView)
	ON_NOTIFY(NM_CLICK, IDC_LIST_SCORE, OnClickListScore)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CScoreView diagnostics

#ifdef _DEBUG
void CScoreView::AssertValid() const
{
	CFormView::AssertValid();
}

void CScoreView::Dump(CDumpContext& dc) const
{
	CFormView::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CScoreView message handlers



void CScoreView::OnClickListScore(NMHDR* pNMHDR, LRESULT* pResult) 
{
	// TODO: Add your control notification handler code here
	ScoreShow();	
	*pResult = 0;
}

void CScoreView::ScoreShow()
{
	CScoreDlg m_ScoreDlg;
	if(m_ScoreDlg.DoModal()!=IDOK)
	return;

}

⌨️ 快捷键说明

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