?? scoreview.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;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -