📄 dlgselperiod.cpp
字号:
// DlgSelPeriod.cpp : implementation file
//
#include "stdafx.h"
#include "Student.h"
#include "DlgSelPeriod.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDlgSelPeriod dialog
CDlgSelPeriod::CDlgSelPeriod(CWnd* pParent /*=NULL*/)
: CDialog(CDlgSelPeriod::IDD, pParent)
{
//{{AFX_DATA_INIT(CDlgSelPeriod)
//}}AFX_DATA_INIT
}
void CDlgSelPeriod::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDlgSelPeriod)
DDX_Control(pDX, IDC_LIST_PERIOD, m_lstPeriod);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDlgSelPeriod, CDialog)
//{{AFX_MSG_MAP(CDlgSelPeriod)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDlgSelPeriod message handlers
BOOL CDlgSelPeriod::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_lstPeriod.AddString("平时作业");
m_lstPeriod.AddString("实验报告");
m_lstPeriod.AddString("期中考试");
m_lstPeriod.AddString("期末考试");
m_lstPeriod.AddString("总评成绩");
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CDlgSelPeriod::OnOK()
{
// TODO: Add extra validation here
m_nPeriod = m_lstPeriod.GetCurSel();
if (m_nPeriod == LB_ERR)
m_nPeriod = -1;
CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -