scoredlg.cpp

来自「好用的键盘超人源代码」· C++ 代码 · 共 65 行

CPP
65
字号
// Score.cpp : implementation file
//

#include "stdafx.h"
#include "rain.h"
#include "scoredlg.h"

#include "raindoc.h"

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

extern CRainDoc *PDocument;

/////////////////////////////////////////////////////////////////////////////
// CScore dialog


CScoreDlg::CScoreDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CScoreDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CScore)
	m_recordSpeed = _T("");
	m_recordCreateTime = _T("");
	m_recordUsrName = _T("");
	//}}AFX_DATA_INIT
}


void CScoreDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CScore)
	DDX_Text(pDX, IDC_STATIC_S2, m_recordSpeed);
	DDX_Text(pDX, IDC_STATIC_CT2, m_recordCreateTime);
	DDX_Text(pDX, IDC_STATIC_KS2, m_recordUsrName);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CScoreDlg, CDialog)
	//{{AFX_MSG_MAP(CScore)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CScore message handlers

BOOL CScoreDlg::OnInitDialog() 
{
    m_recordSpeed.Format("%d chars/minute",PDocument->recordSpeed); 
	m_recordUsrName = PDocument->recordUsrName;
	m_recordCreateTime = PDocument->recordCreateTime;

	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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