📄 namesel.cpp
字号:
// NameSel.cpp : implementation file
//
#include "stdafx.h"
#include "qq.h"
#include "NameSel.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CNameSel dialog
CNameSel::CNameSel(CWnd* pParent /*=NULL*/)
: CDialog(CNameSel::IDD, pParent)
{
//{{AFX_DATA_INIT(CNameSel)
m_name_radio = 0;
//}}AFX_DATA_INIT
}
void CNameSel::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CNameSel)
DDX_Control(pDX, IDC_RADIO1, m_name_radioCtrl);
DDX_Control(pDX, IDC_NAME_EDIT, m_name);
DDX_Radio(pDX, IDC_RADIO1, m_name_radio);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CNameSel, CDialog)
//{{AFX_MSG_MAP(CNameSel)
ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CNameSel message handlers
void CNameSel::OnRadio1()
{
// TODO: Add your control notification handler code here
selFlag = 0; // student name select
}
void CNameSel::OnRadio2()
{
// TODO: Add your control notification handler code here
selFlag = 1; // teacher name select.
}
void CNameSel::OnOK()
{
// TODO: Add extra validation here
m_name.GetWindowText(strText);
CDialog::OnOK();
}
BOOL CNameSel::OnInitDialog()
{
CDialog::OnInitDialog();
// OnRadio1();
// m_name_radioCtrl = 1;
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CNameSel::OnCancel()
{
// TODO: Add extra cleanup here
CDialog::OnCancel();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -