📄 gradedlg.cpp
字号:
// GradeDlg.cpp : implementation file
//
#include "stdafx.h"
#include "sound.h"
#include "GradeDlg.h"
#include "soundDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// GradeDlg dialog
GradeDlg::GradeDlg(CWnd* pParent /*=NULL*/)
: CDialog(GradeDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(GradeDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void GradeDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(GradeDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(GradeDlg, CDialog)
//{{AFX_MSG_MAP(GradeDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// GradeDlg message handlers
BOOL GradeDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
CString s[64];//int* kk;
for(int n_Man=0;n_Man<=63;n_Man++)
{
s[n_Man].Format("%d",DataNew[n_Man]);
}
for( int i = 0; i < 64; i ++)
{
SetDlgItemText(IDC_GRADE11 + i, _T(s[i]));
}
/* //在每个按钮上显示分数
GetDlgItem(IDC_GRADE11)->SetWindowText(_T(s[0]));
GetDlgItem(IDC_GRADE12)->SetWindowText(_T(s[1]));
GetDlgItem(IDC_GRADE13)->SetWindowText(_T(s[2]));
GetDlgItem(IDC_GRADE14)->SetWindowText(_T(s[3]));
GetDlgItem(IDC_GRADE15)->SetWindowText(_T(s[4]));
GetDlgItem(IDC_GRADE16)->SetWindowText(_T(s[5]));
GetDlgItem(IDC_GRADE17)->SetWindowText(_T(s[6]));
GetDlgItem(IDC_GRADE18)->SetWindowText(_T(s[7]));
GetDlgItem(IDC_GRADE19)->SetWindowText(_T(s[8]));
GetDlgItem(IDC_GRADE20)->SetWindowText(_T(s[9]));
GetDlgItem(IDC_GRADE21)->SetWindowText(_T(s[10]));
GetDlgItem(IDC_GRADE22)->SetWindowText(_T(s[11]));
GetDlgItem(IDC_GRADE23)->SetWindowText(_T(s[12]));
GetDlgItem(IDC_GRADE24)->SetWindowText(_T(s[13]));
GetDlgItem(IDC_GRADE25)->SetWindowText(_T(s[14]));
GetDlgItem(IDC_GRADE26)->SetWindowText(_T(s[15]));
GetDlgItem(IDC_GRADE27)->SetWindowText(_T(s[16]));
GetDlgItem(IDC_GRADE28)->SetWindowText(_T(s[17]));
GetDlgItem(IDC_GRADE29)->SetWindowText(_T(s[18]));
GetDlgItem(IDC_GRADE30)->SetWindowText(_T(s[19]));
GetDlgItem(IDC_GRADE31)->SetWindowText(_T(s[20]));
GetDlgItem(IDC_GRADE32)->SetWindowText(_T(s[21]));
GetDlgItem(IDC_GRADE33)->SetWindowText(_T(s[22]));
GetDlgItem(IDC_GRADE34)->SetWindowText(_T(s[23]));
GetDlgItem(IDC_GRADE35)->SetWindowText(_T(s[24]));
GetDlgItem(IDC_GRADE36)->SetWindowText(_T(s[25]));
GetDlgItem(IDC_GRADE37)->SetWindowText(_T(s[26]));
GetDlgItem(IDC_GRADE38)->SetWindowText(_T(s[27]));
GetDlgItem(IDC_GRADE39)->SetWindowText(_T(s[28]));
GetDlgItem(IDC_GRADE40)->SetWindowText(_T(s[29]));
GetDlgItem(IDC_GRADE41)->SetWindowText(_T(s[30]));
GetDlgItem(IDC_GRADE42)->SetWindowText(_T(s[31]));
GetDlgItem(IDC_GRADE43)->SetWindowText(_T(s[32]));
GetDlgItem(IDC_GRADE44)->SetWindowText(_T(s[33]));
GetDlgItem(IDC_GRADE45)->SetWindowText(_T(s[34]));
GetDlgItem(IDC_GRADE46)->SetWindowText(_T(s[35]));
GetDlgItem(IDC_GRADE47)->SetWindowText(_T(s[36]));
GetDlgItem(IDC_GRADE48)->SetWindowText(_T(s[37]));
GetDlgItem(IDC_GRADE49)->SetWindowText(_T(s[38]));
GetDlgItem(IDC_GRADE50)->SetWindowText(_T(s[39]));
GetDlgItem(IDC_GRADE51)->SetWindowText(_T(s[40]));
GetDlgItem(IDC_GRADE52)->SetWindowText(_T(s[41]));
GetDlgItem(IDC_GRADE53)->SetWindowText(_T(s[42]));
GetDlgItem(IDC_GRADE54)->SetWindowText(_T(s[43]));
GetDlgItem(IDC_GRADE55)->SetWindowText(_T(s[44]));
GetDlgItem(IDC_GRADE56)->SetWindowText(_T(s[45]));
GetDlgItem(IDC_GRADE57)->SetWindowText(_T(s[46]));
GetDlgItem(IDC_GRADE58)->SetWindowText(_T(s[47]));
GetDlgItem(IDC_GRADE59)->SetWindowText(_T(s[48]));
GetDlgItem(IDC_GRADE60)->SetWindowText(_T(s[49]));
GetDlgItem(IDC_GRADE61)->SetWindowText(_T(s[50]));
GetDlgItem(IDC_GRADE62)->SetWindowText(_T(s[51]));
GetDlgItem(IDC_GRADE63)->SetWindowText(_T(s[52]));
GetDlgItem(IDC_GRADE64)->SetWindowText(_T(s[53]));
GetDlgItem(IDC_GRADE65)->SetWindowText(_T(s[54]));
GetDlgItem(IDC_GRADE66)->SetWindowText(_T(s[55]));
GetDlgItem(IDC_GRADE67)->SetWindowText(_T(s[56]));
GetDlgItem(IDC_GRADE68)->SetWindowText(_T(s[57]));
GetDlgItem(IDC_GRADE69)->SetWindowText(_T(s[58]));
GetDlgItem(IDC_GRADE70)->SetWindowText(_T(s[59]));
GetDlgItem(IDC_GRADE71)->SetWindowText(_T(s[60]));
GetDlgItem(IDC_GRADE72)->SetWindowText(_T(s[61]));
GetDlgItem(IDC_GRADE73)->SetWindowText(_T(s[62]));
GetDlgItem(IDC_GRADE74)->SetWindowText(_T(s[63]));
//*/
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void GradeDlg::OnOK()
{
// TODO: Add extra validation here
CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -